feat(client): project managed services to digital employee

This commit is contained in:
baiyanyun
2026-06-08 11:40:03 +08:00
parent 8dc9ce73b9
commit 710bf72353
9 changed files with 406 additions and 146 deletions

View File

@@ -26,9 +26,35 @@ export interface DigitalEmployeeSessionSummary {
}>;
}
export interface DigitalEmployeeManagedService {
serviceId: string;
name: string;
kind: "agent" | "mcp" | "desktop" | "network" | "file" | "gui" | "unknown";
status: "running" | "stopped" | "degraded";
statusLabel: string;
running: boolean;
error?: string | null;
requiresHumanAction: boolean;
dependentTasks: string[];
restartCount: number;
lastSeenAt: string;
instance: {
pid?: number;
port?: number;
engineType?: string | null;
serverCount?: number;
serverNames?: string[];
};
lease: {
state: "active" | "stopped" | "degraded";
updatedAt: string;
};
}
export interface DigitalEmployeeSnapshot {
generatedAt: string;
services: Record<string, DigitalEmployeeServiceStatus | null>;
managedServices?: DigitalEmployeeManagedService[];
sessions: DigitalEmployeeSessionSummary;
}