Route daemon surface commands through Verse client

This commit is contained in:
Meta Vens 2026-06-22 14:27:52 +01:00
commit 96b74097c1
3 changed files with 43 additions and 5 deletions

View file

@ -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",