@efengx/openclaw-channel-dragon 0.4.7 → 0.4.8

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
@@ -96,12 +96,26 @@ const plugin = createChatChannelPlugin({
96
96
  },
97
97
  }),
98
98
  },
99
+ config: {
100
+ get: (cfg) => cfg.channels?.[channelId] || {},
101
+ set: (cfg, value) => {
102
+ cfg.channels = cfg.channels || {};
103
+ cfg.channels[channelId] = value;
104
+ }
105
+ }
99
106
  });
100
107
  const entry = defineChannelPluginEntry({
101
108
  id: channelId,
102
109
  name: "Dragon Workbench Channel",
103
110
  description: "Connect OpenClaw to the Dragon agent-client workbench chat.",
104
111
  plugin,
112
+ config: {
113
+ get: (cfg) => cfg.channels?.[channelId] || {},
114
+ set: (cfg, value) => {
115
+ cfg.channels = cfg.channels || {};
116
+ cfg.channels[channelId] = value;
117
+ }
118
+ },
105
119
  configHelpers: {
106
120
  get: (cfg) => cfg.channels?.[channelId] || {},
107
121
  set: (cfg, value) => {
@@ -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.8",
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.8",
4
4
  "description": "Dragon workbench channel for OpenClaw",
5
5
  "author": "feng xiang <ofengx@gmail.com>",
6
6
  "type": "module",