Publish typed catalog Eve surface

This commit is contained in:
Meta Vens 2026-06-13 08:37:10 +01:00
commit 88af85bddd
153 changed files with 415 additions and 149 deletions

View file

@ -84,6 +84,9 @@ await using (var node = await AetheriaStateNode.OpenAsync(statePath, "aetheria-s
SampleNames = ["Ada", "Grace"]
});
await node.PutCatalogSurfaceAsync(
AetheriaCatalogSurfaceProjector.Build(node.ReadCatalogSnapshot(), now));
await node.PutRunStateAsync(runKey, new AetheriaRunState
{
RunId = "smoke",
@ -120,6 +123,7 @@ await using (var reopened = await AetheriaStateNode.OpenAsync(statePath, "aether
var faction = await reopened.GetCorporationByLegacyIdAsync(factionLegacyId);
var nameFile = await reopened.GetNameFileByLegacyIdAsync(nameFileLegacyId);
var quarantine = await reopened.GetLegacyCatalogQuarantineAsync();
var catalogSurface = await reopened.GetCatalogSurfaceAsync();
var playerSettings = await reopened.GetPlayerSettingsAsync();
var runState = await reopened.GetRunStateAsync(runKey);
@ -148,6 +152,12 @@ await using (var reopened = await AetheriaStateNode.OpenAsync(statePath, "aether
throw new InvalidOperationException("Legacy catalog quarantine did not survive flush/reopen.");
}
if (catalogSurface?.Schema != "gamecult.eve.surface.v1" ||
catalogSurface.Surface.Id != AetheriaCatalogSurfaceProjector.SurfaceId)
{
throw new InvalidOperationException("Eve catalog surface did not survive flush/reopen.");
}
if (playerSettings?.ActiveRunKey != runKey.ToString())
{
throw new InvalidOperationException("Player settings did not survive flush/reopen.");