Broker native Eve dashboards

This commit is contained in:
Meta Vens 2026-05-31 01:23:15 +01:00
commit f2ae17f342
7 changed files with 559 additions and 80 deletions

View file

@ -104,6 +104,51 @@ public sealed record MimirFaustControlSnapshot(
[property: Key(0)] string Path,
[property: Key(1)] float Value);
[CultDocument("mimir.eve_dashboard_manifest", "mimir.eve_dashboard_manifest.v1")]
[MessagePackObject]
public sealed record MimirEveDashboardManifestDocument(
[property: Key(0)]
[property: CultName]
string ProviderId,
[property: Key(1)] string Title,
[property: Key(2)] string Description,
[property: Key(3)] string Version,
[property: Key(4)] string Endpoint,
[property: Key(5)] string[] Capabilities,
[property: Key(6)] bool UsesCultMesh,
[property: Key(7)] string Transport);
[CultDocument("mimir.eve_dashboard_state", "mimir.eve_dashboard_state.v1")]
[MessagePackObject]
public sealed record MimirEveDashboardStateDocument(
[property: Key(0)]
[property: CultName]
string ProviderId,
[property: Key(1)] string Title,
[property: Key(2)] long Version,
[property: Key(3)] string UpdatedAtUtc,
[property: Key(4)] string SelectedNodeId,
[property: Key(5)] string LutPreset,
[property: Key(6)] MimirEveDashboardNodeSnapshot[] Nodes);
[MessagePackObject]
public sealed record MimirEveDashboardNodeSnapshot(
[property: Key(0)] string Id,
[property: Key(1)] string Label,
[property: Key(2)] string Kind,
[property: Key(3)] bool Visible,
[property: Key(4)] double X,
[property: Key(5)] double Y,
[property: Key(6)] double Z,
[property: Key(7)] double Rotation,
[property: Key(8)] double Scale,
[property: Key(9)] double Width,
[property: Key(10)] double Height,
[property: Key(11)] string Health,
[property: Key(12)] string? ProviderId,
[property: Key(13)] string? Command,
[property: Key(14)] string? Endpoint);
public static class MimirCultMeshContractFactory
{
public static MimirBioacousticCodebookState CreateCodebookState(

View file

@ -6,7 +6,8 @@ public enum MimirNetworkPayloadKind
RawAudioDebugWindow,
CompressedAudioProgramFeed,
CompressedVideoProgramFeed,
RawVideoDiagnosticWindow
RawVideoDiagnosticWindow,
NativeDashboardState
}
public enum MimirNetworkTransportKind
@ -80,11 +81,24 @@ public static class MimirNetworkTransportConfigurations
Notes = "Do not trust browser media timestamps without decoded witness state."
};
public static MimirNetworkTransportConfiguration EveDashboardState { get; } = new(
"eve-dashboard-state",
"Native retained dashboard trees and provider manifests for Eve-rendered control surfaces.",
MimirNetworkTransportKind.CultMeshTypedState,
MimirNetworkPayloadKind.NativeDashboardState,
MayAffectClock: false,
CarriesRawMedia: false,
TargetLatencyMilliseconds: 50.0,
RequiredDocuments: ["mimir.eve_dashboard_manifest", "mimir.eve_dashboard_state"],
RejectionConditions: ["unknown-provider", "untrusted-provider", "schema-version-mismatch", "command-owner-conflict"],
"Dashboard providers own state and commands. Eve owns native rendering and touch. No remote UI code runs on Eve.");
public static IReadOnlyList<MimirNetworkTransportConfiguration> BuiltIn { get; } =
[
CultMeshTimingState,
RawAudioDebugWindow,
SrtProgramBridge,
WebRtcExperiment
WebRtcExperiment,
EveDashboardState
];
}