@efengx/openclaw-channel-dragon 0.1.51 → 0.1.52
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 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ async function startPolling(ctx) {
|
|
|
69
69
|
}
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
const deliverToOpenClaw = async (content, sessionId = 'default') => {
|
|
72
|
+
const deliverToOpenClaw = async (content, sessionId = 'default', modelId) => {
|
|
73
73
|
const msg = String(content || '').trim();
|
|
74
74
|
if (!msg)
|
|
75
75
|
return;
|
|
@@ -94,6 +94,7 @@ async function startPolling(ctx) {
|
|
|
94
94
|
CommandSource: "native",
|
|
95
95
|
CommandAuthorized: true,
|
|
96
96
|
Timestamp: Date.now(),
|
|
97
|
+
Model: modelId,
|
|
97
98
|
},
|
|
98
99
|
cfg: ctx.cfg,
|
|
99
100
|
dispatcherOptions: {
|
|
@@ -168,7 +169,7 @@ async function startPolling(ctx) {
|
|
|
168
169
|
if (!evt || evt.agentId !== agentId)
|
|
169
170
|
continue;
|
|
170
171
|
if (evt.type === 'WORKBENCH_MESSAGE') {
|
|
171
|
-
await deliverToOpenClaw(String(evt?.payload?.content || ''), String(evt?.payload?.sessionId || 'default'));
|
|
172
|
+
await deliverToOpenClaw(String(evt?.payload?.content || ''), String(evt?.payload?.sessionId || 'default'), evt?.payload?.modelId);
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
175
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@efengx/openclaw-channel-dragon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
4
4
|
"description": "Dragon workbench channel for OpenClaw",
|
|
5
5
|
"author": "feng xiang <ofengx@gmail.com>",
|
|
6
6
|
"type": "module",
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"openclaw.plugin.json",
|
|
12
12
|
"README.md"
|
|
13
13
|
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc -p tsconfig.json",
|
|
16
|
+
"lint": "echo \"(skip)\""
|
|
17
|
+
},
|
|
14
18
|
"dependencies": {
|
|
15
19
|
"openclaw": "^2026.4.12"
|
|
16
20
|
},
|
|
@@ -32,9 +36,5 @@
|
|
|
32
36
|
},
|
|
33
37
|
"publishConfig": {
|
|
34
38
|
"access": "public"
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"build": "tsc -p tsconfig.json",
|
|
38
|
-
"lint": "echo \"(skip)\""
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|