Route daemon surface commands through typed operations

This commit is contained in:
Meta Vens 2026-06-21 12:39:59 +01:00
commit 039d3676f7
5 changed files with 81 additions and 21 deletions

View file

@ -1032,6 +1032,37 @@ public class DaemonRuntimeDocumentTests
Assert.IsEmpty(envelope.Path);
}
[Test]
public void DaemonEveSurfaceCommandRejectsUnsupportedArgumentlessOperation()
{
var statePath = Path.Combine(
Path.GetTempPath(),
"aetheria-daemon-surface-command-tests",
Path.GetRandomFileName(),
"state.cc");
var frame = AetheriaRuntimeDaemonFrameDocument.Create(
new AetheriaRuntimeRunCheckpointCommit
{
CurrentEntityKey = "entity:surface-player"
},
"aetheria-daemon",
"session-surface-command",
78,
1.5,
0.02);
AetheriaRuntimeDaemonFrameStore.PublishFrame(statePath, frame);
var request = new EveSurfaceCommandRequest(
"aetheria.daemon",
AetheriaRuntimeDaemonGameSurfaceBuilder.SurfaceId,
"aetheria.daemon.commands.TransferCargoItem",
new Dictionary<string, string>(StringComparer.Ordinal),
DateTimeOffset.UtcNow,
"unity-uitoolkit");
Assert.IsFalse(AetheriaRuntimeDaemonSurfaceCommands.TrySubmit(statePath, request, out var envelope));
Assert.IsNull(envelope);
}
[Test]
public void DaemonOperationsMovesTargetSelectionIntoDaemonState()
{