feat(remote): 显示控制中心和实例版本

This commit is contained in:
yml
2026-11-22 15:26:41 +08:00
parent 0940dd8f85
commit 9ed41d6551
6 changed files with 86 additions and 6 deletions
+6 -4
View File
@@ -112,10 +112,12 @@ type ServerEvent struct {
// DashboardState is the polling payload consumed by the remote web console.
type DashboardState struct {
ServerTime time.Time `json:"serverTime"`
Instances []InstanceState `json:"instances"`
Runs []RunRecord `json:"runs"`
Commands []CommandAudit `json:"commands"`
ServerTime time.Time `json:"serverTime"`
ControlVersion string `json:"controlVersion,omitempty"`
ControlBuildTime string `json:"controlBuildTime,omitempty"`
Instances []InstanceState `json:"instances"`
Runs []RunRecord `json:"runs"`
Commands []CommandAudit `json:"commands"`
}
// CommandAudit records one command and its delivery/execution state.