diff --git a/Aetheria.State.Verify/Program.cs b/Aetheria.State.Verify/Program.cs index 790296d8d..2b6ef583b 100644 --- a/Aetheria.State.Verify/Program.cs +++ b/Aetheria.State.Verify/Program.cs @@ -6838,7 +6838,7 @@ static void RequireTypedEveCommandBodies(string root) "global::Aetheria.State.AetheriaCommandPort", "public const string DefaultRuntimeId = \"aetheria-command-client\"", "string.IsNullOrWhiteSpace(runtimeId) ? DefaultRuntimeId : runtimeId", - "public static class AetheriaRuntimeCommandSubmitter", + "internal static class AetheriaRuntimeCommandSubmitter", "TrySubmitEveCommand(", "TrySubmitDaemonCommand(", "CreatePlayerSettingsCommand(", @@ -6942,6 +6942,12 @@ static void RequireTypedEveCommandBodies(string root) string.Join(", ", sharedCommandRuntimeIdHits)); } + if (runtimeCommandPort.Contains("public static class AetheriaRuntimeCommandSubmitter", StringComparison.Ordinal)) + { + throw new InvalidOperationException( + "Shared command runtime still exposes the generic transport submitter publicly instead of routing callers through typed clients."); + } + var forbiddenUnitySubmitterSymbols = new[] { "AetheriaRuntimeCommandSubmitter.TrySubmitEveCommand(", diff --git a/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeCommandPort.cs b/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeCommandPort.cs index 4d7d89aa9..2969928ca 100644 --- a/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeCommandPort.cs +++ b/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeCommandPort.cs @@ -185,7 +185,7 @@ namespace GameCult.Aetheria.State.Verse } } - public static class AetheriaRuntimeCommandSubmitter + internal static class AetheriaRuntimeCommandSubmitter { private static readonly object Sync = new object(); private static readonly Dictionary Ports =