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

@@ -50,6 +50,7 @@ class ServerState(Base):
id = Column(Integer, primary_key=True, index=True)
server_id = Column(Integer, ForeignKey('monitored_servers.id'), nullable=False, unique=True)
openclaw_version = Column(String(64), nullable=True)
plugin_version = Column(String(64), nullable=True)
agents_json = Column(Text, nullable=True) # json list
cpu_pct = Column(Float, nullable=True)
mem_pct = Column(Float, nullable=True)