feat(monitor): store plugin version separately from openclaw version

- Add server_states.plugin_version column
- Keep openclaw_version for remote OpenClaw runtime version
- Expose plugin_version in monitor server view
- Accept and persist plugin_version in heartbeat payloads
This commit is contained in:
zhi
2026-03-20 07:23:18 +00:00
parent a0d0c7b3a1
commit 97f12cac7a
4 changed files with 15 additions and 0 deletions

View File

@@ -298,6 +298,7 @@ def get_server_states_view(db: Session, offline_after_minutes: int = 7):
'display_name': s.display_name or s.identifier,
'online': online,
'openclaw_version': st.openclaw_version if st else None,
'plugin_version': st.plugin_version if st else None,
'cpu_pct': st.cpu_pct if st else None,
'mem_pct': st.mem_pct if st else None,
'disk_pct': st.disk_pct if st else None,