feature: In-App Simulation Runner (Backend)
CI / frontend (push) Canceled after 0s
CI / backend (push) Canceled after 8m32s

This commit is contained in:
voltsrage
2026-08-06 01:52:53 +08:00
parent 943d41339c
commit 24f45851e9
83 changed files with 3974 additions and 120 deletions
@@ -1,4 +1,5 @@
using System.CommandLine;
using VigilCare.Simulation;
public static class DryRunCommand
{
@@ -21,7 +22,7 @@ public static class DryRunCommand
return;
}
var engine = new ReplayEngine(client: null!, poller: null);
var engine = new ReplayEngine(client: null!, poller: null, new ConsoleReplayObserver());
await engine.RunAsync(scenario, new ReplayOptions(DryRun: true));
}, fileArg);
@@ -1,4 +1,5 @@
using System.CommandLine;
using VigilCare.Simulation;
public static class ReplayAllCommand
{
@@ -38,7 +39,7 @@ public static class ReplayAllCommand
await client.LoginAsync(username, password);
SimulatorConsole.Info("Authenticated.");
var engine = new ReplayEngine(client, poller: null);
var engine = new ReplayEngine(client, poller: null, new ConsoleReplayObserver());
var results = new List<ReplayResult>();
foreach (var file in files)
@@ -1,4 +1,5 @@
using System.CommandLine;
using VigilCare.Simulation;
public static class ReplayCommand
{
@@ -86,7 +87,7 @@ public static class ReplayCommand
}
var poller = poll ? new ApiPoller(client) : null;
var engine = new ReplayEngine(client, poller);
var engine = new ReplayEngine(client, poller, new ConsoleReplayObserver());
var options = new ReplayOptions(
speed, poll, pollInterval, DryRun: false,
Target: gateway ? ReplayTarget.Gateway : ReplayTarget.Central,
@@ -1,4 +1,5 @@
using System.CommandLine;
using VigilCare.Simulation;
public static class ValidateCommand
{