namespace Lab505.Shared; /// /// Workflow state pushed via SignalR. /// public record WorkflowStateDto( bool IsRunning, string? LastError, int CompletedCycles, string ImrCmd, // "" = idle, "undocking" = undock in progress string AmrCmd, // "" = idle, "undocking" = undock in progress bool ImrBusy, // manual command đang chạy string? ImrBusyLabel, // label lệnh đang chạy (nút nào bị khóa) string? ImrNextLabel, // lệnh đang xếp hàng chờ (null = không có) bool AmrBusy, string? AmrBusyLabel, // label lệnh đang chạy AMR string? AmrNextLabel, string? ImrExecError, // lỗi thực thi lệnh thủ công IMR gần nhất string? AmrExecError, // lỗi thực thi lệnh thủ công AMR gần nhất bool DobotBusy, string? DobotBusyLabel, string? DobotNextLabel, string? DobotExecError );