feat(telemetry): report openclaw and plugin versions separately

- Report remote OpenClaw CLI version as openclaw_version
- Report harborforge-monitor plugin version as plugin_version
- Pass plugin version from plugin runtime to sidecar
- Read live config via api.pluginConfig/api.config helper
This commit is contained in:
zhi
2026-03-20 07:23:18 +00:00
parent 006784db63
commit 040cde8cad
6 changed files with 73 additions and 6 deletions

View File

@@ -92,7 +92,7 @@ export default {
HF_MONITOR_HTTP_FALLBACK_INTERVAL: String(live.httpFallbackIntervalSec || 60),
HF_MONITOR_LOG_LEVEL: live.logLevel || 'info',
OPENCLAW_PATH: process.env.OPENCLAW_PATH || join(process.env.HOME || '/root', '.openclaw'),
OPENCLAW_VERSION: api.version || 'unknown',
HF_MONITOR_PLUGIN_VERSION: api.version || 'unknown',
};
sidecar = spawn('node', [serverPath], {