Route daemon surface commands through Verse client
This commit is contained in:
parent
a1f5c385af
commit
96b74097c1
3 changed files with 43 additions and 5 deletions
|
|
@ -2936,7 +2936,9 @@ static void RequireEveRuntimeBootstrap(string root)
|
|||
"public static class AetheriaRuntimeDaemonSurfaceCommands",
|
||||
"EveSurfaceCommandRequest request",
|
||||
"request.ProviderId, \"aetheria.daemon\"",
|
||||
"AetheriaRuntimeStateReader.TryReadObservedDaemonState(stateFilePath, out var observed)",
|
||||
"AetheriaRuntimeVerseClient",
|
||||
".OpenAsync(",
|
||||
"GetObservedDaemonStateAsync()",
|
||||
"new AetheriaRuntimeDaemonOperationClient(",
|
||||
"AetheriaRuntimeDaemonSurfaceCommandCatalog.TrySubmitArgumentless(",
|
||||
"AetheriaRuntimeDaemonSurfaceCommandCatalog.CommandPrefix"
|
||||
|
|
@ -2951,6 +2953,12 @@ static void RequireEveRuntimeBootstrap(string root)
|
|||
string.Join(", ", missingDaemonSurfaceCommandSymbols));
|
||||
}
|
||||
|
||||
if (daemonSurfaceCommands.Contains("AetheriaRuntimeStateReader.TryReadObservedDaemonState", StringComparison.Ordinal))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Daemon Eve surface command routing still reads observed daemon state through the runtime file reader instead of the Verse client.");
|
||||
}
|
||||
|
||||
var forbiddenDaemonSurfaceCommandSymbols = new[]
|
||||
{
|
||||
"request.Payload.TryGetValue",
|
||||
|
|
|
|||
Loading…
Reference in a new issue