@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 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;
@@ -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.1.56",
5
+ "version": "0.4.9",
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.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "Dragon workbench channel for OpenClaw",
5
5
  "author": "feng xiang <ofengx@gmail.com>",
6
6
  "type": "module",