@efengx/openclaw-channel-dragon 0.4.7 → 0.4.9
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 +3 -7
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -59,6 +59,9 @@ const base = createChannelPluginBase({
|
|
|
59
59
|
finalize: async () => ({ ok: true })
|
|
60
60
|
},
|
|
61
61
|
config: {
|
|
62
|
+
listAccountIds: (cfg) => {
|
|
63
|
+
return Object.keys(cfg.channels?.[channelId]?.accounts || { "default": {} });
|
|
64
|
+
},
|
|
62
65
|
resolveAccount: (cfg, accountId = "default") => {
|
|
63
66
|
const accountConfig = cfg.channels?.[channelId]?.accounts?.[accountId] || {};
|
|
64
67
|
return {
|
|
@@ -102,13 +105,6 @@ const entry = defineChannelPluginEntry({
|
|
|
102
105
|
name: "Dragon Workbench Channel",
|
|
103
106
|
description: "Connect OpenClaw to the Dragon agent-client workbench chat.",
|
|
104
107
|
plugin,
|
|
105
|
-
configHelpers: {
|
|
106
|
-
get: (cfg) => cfg.channels?.[channelId] || {},
|
|
107
|
-
set: (cfg, value) => {
|
|
108
|
-
cfg.channels = cfg.channels || {};
|
|
109
|
-
cfg.channels[channelId] = value;
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
108
|
registerFull(api) {
|
|
113
109
|
cachedRuntime = api.runtime;
|
|
114
110
|
const agentEventHandler = api.runtime?.events?.onAgentEvent || InfraRuntime.onAgentEvent;
|
package/openclaw.plugin.json
CHANGED