using Lab505.Script.Facades; namespace Lab505.Script; public class FlowContext { /// System condition checker — Assert(instant) / WaitUntil(async wait) / Require(wait+throw) public required ICondition State { get; set; } /// IMR facade — GoTo, Undock, Load, Unload, PickUp, IsAt public required IImrFacade IMR { get; set; } /// AMR facade — GoTo, Undock, Load, Unload, IsAt public required IAmrFacade AMR { get; set; } /// Conveyor — C1In/C1Out/C2In/C2Out coil commands public required IConveyorFacade Conveyor { get; set; } /// ASRS — X1_S12…X3_R43 operations + WaitCoil public required IAsrsFacade ASRS { get; set; } /// Dobot — PowerOn, GoHome, Continue, Cancel, Pickup public required IDobotFacade Dobot { get; set; } /// Workflow — read-only state: IsRunning, LastError, CompletedCycles public required IFlowFacade Workflow { get; set; } /// Per-user output writer — use Log.WriteLine(...) in scripts instead of Console.WriteLine public required TextWriter Log { get; set; } public CancellationToken Token { get; set; } }