@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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. 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
- respond(true, { version, capabilities: ['topics', 'chatHistory'] });
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coclaw/openclaw-coclaw",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "OpenClaw CoClaw channel plugin for remote chat",