@efengx/openclaw-channel-dragon 0.4.6 → 0.4.7

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -102,6 +102,13 @@ const entry = defineChannelPluginEntry({
102
102
  name: "Dragon Workbench Channel",
103
103
  description: "Connect OpenClaw to the Dragon agent-client workbench chat.",
104
104
  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
+ },
105
112
  registerFull(api) {
106
113
  cachedRuntime = api.runtime;
107
114
  const agentEventHandler = api.runtime?.events?.onAgentEvent || InfraRuntime.onAgentEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@efengx/openclaw-channel-dragon",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
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
+ }