@coclaw/openclaw-coclaw 0.6.0 → 0.6.1
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/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -229,7 +229,10 @@ const plugin = {
|
|
|
229
229
|
try {
|
|
230
230
|
await waitForSessionsReady();
|
|
231
231
|
const version = await getPluginVersion();
|
|
232
|
-
|
|
232
|
+
const rawClawVersion = api.runtime?.version;
|
|
233
|
+
// OpenClaw 打包后 resolveVersion() 路径失配导致返回 'unknown',此时不传该字段
|
|
234
|
+
const clawVersion = (rawClawVersion && rawClawVersion !== 'unknown') ? rawClawVersion : undefined;
|
|
235
|
+
respond(true, { version, clawVersion, capabilities: ['topics', 'chatHistory'] });
|
|
233
236
|
}
|
|
234
237
|
catch (err) {
|
|
235
238
|
respondError(respond, err);
|