@efengx/openclaw-channel-dragon 0.4.6 → 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 +21 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -96,12 +96,33 @@ 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
|
+
},
|
|
119
|
+
configHelpers: {
|
|
120
|
+
get: (cfg) => cfg.channels?.[channelId] || {},
|
|
121
|
+
set: (cfg, value) => {
|
|
122
|
+
cfg.channels = cfg.channels || {};
|
|
123
|
+
cfg.channels[channelId] = value;
|
|
124
|
+
}
|
|
125
|
+
},
|
|
105
126
|
registerFull(api) {
|
|
106
127
|
cachedRuntime = api.runtime;
|
|
107
128
|
const agentEventHandler = api.runtime?.events?.onAgentEvent || InfraRuntime.onAgentEvent;
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@efengx/openclaw-channel-dragon",
|
|
3
|
-
"version": "0.4.
|
|
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",
|
|
@@ -11,10 +11,6 @@
|
|
|
11
11
|
"openclaw.plugin.json",
|
|
12
12
|
"README.md"
|
|
13
13
|
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "tsc -p tsconfig.json",
|
|
16
|
-
"lint": "echo \"(skip)\""
|
|
17
|
-
},
|
|
18
14
|
"dependencies": {
|
|
19
15
|
"openclaw": "^2026.4.12"
|
|
20
16
|
},
|
|
@@ -36,5 +32,9 @@
|
|
|
36
32
|
},
|
|
37
33
|
"publishConfig": {
|
|
38
34
|
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "tsc -p tsconfig.json",
|
|
38
|
+
"lint": "echo \"(skip)\""
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|