Add VoidBot Eve dashboard provider
This commit is contained in:
parent
3fc6204aba
commit
1f6e4b061b
5 changed files with 441 additions and 14 deletions
|
|
@ -65,6 +65,7 @@ Extra providers can be registered at launch:
|
|||
```powershell
|
||||
dotnet run --project .\src\Mimir.EveDashboard\Mimir.EveDashboard.csproj -- `
|
||||
--port 8795 `
|
||||
--voidbot-swarm-state "E:\Projects\VoidBot\.voidbot\status\swarm-state.json" `
|
||||
--provider "app.id|App Title|ws://127.0.0.1:14000/eve/deck"
|
||||
```
|
||||
|
||||
|
|
@ -74,6 +75,11 @@ dotnet run --project .\src\Mimir.EveDashboard\Mimir.EveDashboard.csproj -- `
|
|||
|
||||
- `eve.dashboard.broker`: the switchboard rendered as provider cards.
|
||||
- `mimir.stream.layout`: the existing Mimir source-layout fixture provider.
|
||||
- `voidbot.swarm`: the native VoidBot tab. It reads the existing
|
||||
`swarm-state.json` projection from VoidBot, renders the CTB rail as upcoming
|
||||
turn cards, renders agent status cards, and expands the selected Face's state
|
||||
leaves/detail. It is read-only in this cut; scheduler mutations still belong
|
||||
to VoidBot's heartbeat controls.
|
||||
- `yggdrasil.streampixels.edge`: the first Yggdrasil/StreamPixels service
|
||||
dashboard placeholder for the TCP/SSH-routed live edge.
|
||||
|
||||
|
|
@ -104,7 +110,10 @@ The broker smoke on 2026-05-31 verified:
|
|||
|
||||
- `/health` reports active provider, client count, transport, and typed
|
||||
CultMesh dashboard document name.
|
||||
- `/eve/deck/providers` returns the three built-in provider manifests.
|
||||
- `/eve/deck/providers` returns the built-in provider manifests.
|
||||
- WebSocket `/eve/deck` sends the switchboard snapshot.
|
||||
- `open-provider` switches to `mimir.stream.layout` and broadcasts that
|
||||
provider state.
|
||||
- `open-provider` switches to `voidbot.swarm`, which emits VoidBot's paused
|
||||
swarm status, CTB rail, agent cards, and selected Face state detail from the
|
||||
existing VoidBot swarm snapshot.
|
||||
|
|
|
|||
|
|
@ -422,12 +422,15 @@ pixel-accurate gizmo hit-testing are explicit Fensalir renderer cuts, mapped in
|
|||
`/eve/deck` plus the compatibility `/eve/dashboard` endpoint, exposes provider
|
||||
manifests at `/eve/deck/providers`, and routes retained dashboard snapshots and
|
||||
commands for provider-owned trees. Built-in providers are the switchboard,
|
||||
`mimir.stream.layout`, and `yggdrasil.streampixels.edge`; launch-time external
|
||||
providers can be registered as `id|title|ws-url` descriptors for LAN or
|
||||
SSH-forwarded TCP surfaces. EveCanvas renders the dashboard locally in UIKit,
|
||||
including the scene graph and multitouch pan/pinch/rotate source panels, and
|
||||
now treats provider-card taps as `open-provider` commands. Dashboard manifests
|
||||
and states have typed CultMesh-compatible document shapes
|
||||
`mimir.stream.layout`, `voidbot.swarm`, and `yggdrasil.streampixels.edge`;
|
||||
launch-time external providers can be registered as `id|title|ws-url`
|
||||
descriptors for LAN or SSH-forwarded TCP surfaces. EveCanvas renders the
|
||||
dashboard locally in UIKit, including the scene graph and multitouch
|
||||
pan/pinch/rotate source panels, and now treats provider-card taps as
|
||||
`open-provider` commands. `voidbot.swarm` reads VoidBot's existing
|
||||
`.voidbot/status/swarm-state.json` projection, rendering the CTB rail as
|
||||
upcoming turn cards plus agent status cards and selected Face state detail.
|
||||
Dashboard manifests and states have typed CultMesh-compatible document shapes
|
||||
`mimir.eve_dashboard_manifest.v1` and `mimir.eve_dashboard_state.v1`, while the
|
||||
live iPad lane remains WebSocket/TCP because it is the proven tunnelable
|
||||
transport. The Mimir stream-layout provider still uses fixture state; the next
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ using System.Text.Json;
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
var port = ParseInt(args, "--port", 8795);
|
||||
var providers = EveDashboardProviderCatalog.Create(ParseProviderSpecs(args));
|
||||
var voidBotSwarmStatePath = ParseString(args, "--voidbot-swarm-state", @"E:\Projects\VoidBot\.voidbot\status\swarm-state.json");
|
||||
var providers = EveDashboardProviderCatalog.Create(ParseProviderSpecs(args), voidBotSwarmStatePath);
|
||||
using var server = new EveDashboardServer(port, providers);
|
||||
await server.RunAsync();
|
||||
|
||||
|
|
@ -39,6 +40,20 @@ static IReadOnlyList<string> ParseProviderSpecs(IReadOnlyList<string> args)
|
|||
return specs;
|
||||
}
|
||||
|
||||
static string ParseString(IReadOnlyList<string> args, string name, string fallback)
|
||||
{
|
||||
for (var index = 0; index < args.Count - 1; index++)
|
||||
{
|
||||
if (string.Equals(args[index], name, StringComparison.OrdinalIgnoreCase) &&
|
||||
!string.IsNullOrWhiteSpace(args[index + 1]))
|
||||
{
|
||||
return args[index + 1];
|
||||
}
|
||||
}
|
||||
|
||||
return fallback;
|
||||
}
|
||||
|
||||
internal sealed class EveDashboardServer(int port, EveDashboardProviderCatalog providers) : IDisposable
|
||||
{
|
||||
private static readonly JsonSerializerOptions JsonOptions = new()
|
||||
|
|
@ -426,12 +441,13 @@ internal sealed class EveDashboardProviderCatalog
|
|||
|
||||
public DashboardProviderManifest BrokerManifest { get; }
|
||||
|
||||
public static EveDashboardProviderCatalog Create(IReadOnlyList<string> remoteSpecs)
|
||||
public static EveDashboardProviderCatalog Create(IReadOnlyList<string> remoteSpecs, string voidBotSwarmStatePath)
|
||||
{
|
||||
var providers = new List<IDashboardProvider>();
|
||||
var remoteProviders = remoteSpecs.Select(RemoteDashboardProvider.FromSpec).OfType<RemoteDashboardProvider>().ToArray();
|
||||
providers.Add(new DashboardBrokerProvider(remoteProviders));
|
||||
providers.Add(new MimirStreamLayoutProvider());
|
||||
providers.Add(new VoidBotSwarmProvider(voidBotSwarmStatePath));
|
||||
providers.Add(new YggdrasilStreamPixelsProvider());
|
||||
providers.AddRange(remoteProviders);
|
||||
return new EveDashboardProviderCatalog(providers);
|
||||
|
|
@ -546,12 +562,17 @@ internal sealed class DashboardBrokerProvider : MutableDashboardProvider
|
|||
{
|
||||
var nodes = new List<DashboardNode>
|
||||
{
|
||||
new("provider-mimir", "Mimir Stream Layout", "dashboard-provider", -0.42, -0.34, 0.34, 0.22, "local")
|
||||
new("provider-mimir", "Mimir Stream Layout", "dashboard-provider", -0.56, -0.34, 0.30, 0.22, "local")
|
||||
{
|
||||
ProviderId = MimirStreamLayoutProvider.ProviderId,
|
||||
Command = "open-provider",
|
||||
},
|
||||
new("provider-streampixels", "StreamPixels Edge", "dashboard-provider", 0.38, -0.34, 0.34, 0.22, "ssh ready")
|
||||
new("provider-voidbot", "VoidBot Swarm", "dashboard-provider", 0.0, -0.34, 0.30, 0.22, "ctb")
|
||||
{
|
||||
ProviderId = VoidBotSwarmProvider.ProviderId,
|
||||
Command = "open-provider",
|
||||
},
|
||||
new("provider-streampixels", "StreamPixels Edge", "dashboard-provider", 0.56, -0.34, 0.30, 0.22, "ssh ready")
|
||||
{
|
||||
ProviderId = YggdrasilStreamPixelsProvider.ProviderId,
|
||||
Command = "open-provider",
|
||||
|
|
@ -622,6 +643,390 @@ internal sealed class MimirStreamLayoutProvider : MutableDashboardProvider
|
|||
};
|
||||
}
|
||||
|
||||
internal sealed class VoidBotSwarmProvider : IDashboardProvider
|
||||
{
|
||||
public const string ProviderId = "voidbot.swarm";
|
||||
|
||||
private readonly string swarmStatePath;
|
||||
private DashboardState currentState;
|
||||
private DateTime lastWriteUtc = DateTime.MinValue;
|
||||
private string selectedIdentityId = "";
|
||||
private string selectedStatePath = "";
|
||||
|
||||
public VoidBotSwarmProvider(string swarmStatePath)
|
||||
{
|
||||
this.swarmStatePath = swarmStatePath;
|
||||
Manifest = new DashboardProviderManifest(
|
||||
ProviderId,
|
||||
"VoidBot Swarm",
|
||||
"Native Eve tab for VoidBot agent status, CTB order, and selected Face state.",
|
||||
"1",
|
||||
"/eve/deck/voidbot.swarm",
|
||||
["ctb", "agent-status", "state-tree", "cultmesh-snapshot"],
|
||||
UsesCultMesh: true,
|
||||
Transport: "Reads VoidBot swarm-state.json now; consumes voidbot.swarm_state_snapshot.v1 when CultMesh bridge is live.");
|
||||
currentState = BuildMissingState();
|
||||
}
|
||||
|
||||
public DashboardProviderManifest Manifest { get; }
|
||||
|
||||
public DashboardState State
|
||||
{
|
||||
get
|
||||
{
|
||||
RefreshIfNeeded(force: false);
|
||||
return currentState;
|
||||
}
|
||||
}
|
||||
|
||||
public bool ApplyCommand(DashboardCommand command)
|
||||
{
|
||||
RefreshIfNeeded(force: false);
|
||||
var node = currentState.Nodes.FirstOrDefault(candidate => string.Equals(candidate.Id, command.NodeId, StringComparison.Ordinal));
|
||||
if (node == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
currentState.SelectedNodeId = node.Id;
|
||||
if (!string.IsNullOrWhiteSpace(node.IdentityId))
|
||||
{
|
||||
selectedIdentityId = node.IdentityId;
|
||||
selectedStatePath = "";
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(node.StatePath))
|
||||
{
|
||||
selectedStatePath = node.StatePath;
|
||||
}
|
||||
|
||||
RefreshIfNeeded(force: true);
|
||||
currentState.SelectedNodeId = node.Id;
|
||||
return true;
|
||||
}
|
||||
|
||||
private void RefreshIfNeeded(bool force)
|
||||
{
|
||||
try
|
||||
{
|
||||
var info = new FileInfo(swarmStatePath);
|
||||
if (!info.Exists)
|
||||
{
|
||||
currentState = BuildMissingState();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!force && info.LastWriteTimeUtc == lastWriteUtc)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
using var document = JsonDocument.Parse(File.ReadAllText(info.FullName));
|
||||
currentState = BuildState(document.RootElement, info.LastWriteTimeUtc);
|
||||
lastWriteUtc = info.LastWriteTimeUtc;
|
||||
}
|
||||
catch (Exception error)
|
||||
{
|
||||
currentState = BuildErrorState(error.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private DashboardState BuildState(JsonElement root, DateTime sourceWriteUtc)
|
||||
{
|
||||
var summary = TryGet(root, "summary");
|
||||
var controls = TryGet(root, "controls");
|
||||
var cultMesh = TryGet(root, "cultMesh");
|
||||
var participants = ArrayItems(TryGet(root, "participants")).ToArray();
|
||||
var upcoming = ArrayItems(TryGet(root, "upcomingTurns")).ToArray();
|
||||
|
||||
if (string.IsNullOrWhiteSpace(selectedIdentityId))
|
||||
{
|
||||
selectedIdentityId = StringValue(summary, "nextIdentityId")
|
||||
?? StringValue(upcoming.FirstOrDefault(), "identityId")
|
||||
?? StringValue(participants.FirstOrDefault(), "identityId")
|
||||
?? "";
|
||||
}
|
||||
|
||||
var selectedAgent = participants.FirstOrDefault(participant => string.Equals(StringValue(participant, "identityId"), selectedIdentityId, StringComparison.Ordinal));
|
||||
if (selectedAgent.ValueKind == JsonValueKind.Undefined)
|
||||
{
|
||||
selectedAgent = participants.FirstOrDefault();
|
||||
selectedIdentityId = StringValue(selectedAgent, "identityId") ?? "";
|
||||
}
|
||||
|
||||
var nodes = new List<DashboardNode>();
|
||||
var paused = BoolValue(summary, "paused") == true;
|
||||
var stateLabel = StringValue(summary, "state") ?? "unknown";
|
||||
var generatedAt = StringValue(root, "generatedAt") ?? sourceWriteUtc.ToString("O");
|
||||
var cadence = NumberValue(controls, "cadenceMultiplier") ?? NumberValue(summary, "cadenceMultiplier") ?? 1;
|
||||
nodes.Add(new DashboardNode(
|
||||
"voidbot-summary",
|
||||
$"VoidBot Swarm\n{stateLabel} next {StringValue(summary, "nextDisplayName") ?? "none"}",
|
||||
"swarm",
|
||||
-0.60,
|
||||
-0.54,
|
||||
0.34,
|
||||
0.22,
|
||||
paused ? "paused" : "running")
|
||||
{
|
||||
Detail = $"agents {NumberValue(summary, "participantCount") ?? 0:0} ready {NumberValue(summary, "readyNowCount") ?? 0:0} cadence x{cadence:0.##}\nmesh {StringValue(cultMesh, "writeStatus") ?? "missing"} {generatedAt}",
|
||||
});
|
||||
|
||||
AddCtbRail(nodes, upcoming);
|
||||
AddAgentCards(nodes, participants);
|
||||
AddSelectedAgent(nodes, selectedAgent);
|
||||
|
||||
var selectedNodeId = string.IsNullOrWhiteSpace(currentState.SelectedNodeId) ||
|
||||
nodes.All(node => !string.Equals(node.Id, currentState.SelectedNodeId, StringComparison.Ordinal))
|
||||
? "voidbot-summary"
|
||||
: currentState.SelectedNodeId;
|
||||
|
||||
return new DashboardState
|
||||
{
|
||||
ProviderId = ProviderId,
|
||||
Title = "VoidBot Swarm",
|
||||
Version = DateTimeOffset.UtcNow.ToUnixTimeSeconds(),
|
||||
UpdatedAt = DateTimeOffset.UtcNow,
|
||||
SelectedNodeId = selectedNodeId,
|
||||
Nodes = nodes,
|
||||
};
|
||||
}
|
||||
|
||||
private void AddCtbRail(List<DashboardNode> nodes, IReadOnlyList<JsonElement> upcoming)
|
||||
{
|
||||
var count = Math.Min(8, upcoming.Count);
|
||||
for (var index = 0; index < count; index++)
|
||||
{
|
||||
var turn = upcoming[index];
|
||||
var identityId = StringValue(turn, "identityId") ?? "";
|
||||
var active = !string.IsNullOrWhiteSpace(StringValue(turn, "activeJobId"));
|
||||
var mentionCount = NumberValue(turn, "pendingMentionCount") ?? 0;
|
||||
nodes.Add(new DashboardNode(
|
||||
$"ctb-{index}-{identityId}",
|
||||
$"{index + 1}. {StringValue(turn, "displayName") ?? identityId}\n{StringValue(turn, "repoName") ?? "repo"}",
|
||||
"ctb-turn",
|
||||
-0.82 + (index * 0.235),
|
||||
-0.82,
|
||||
0.21,
|
||||
0.11,
|
||||
active ? "active" : mentionCount > 0 ? "mention" : Minutes(NumberValue(turn, "nextTurnInMinutes")))
|
||||
{
|
||||
IdentityId = identityId,
|
||||
Detail = $"speed {NumberValue(turn, "effectiveSpeed") ?? 0:0.###} heat {NumberValue(turn, "heat") ?? 0:0.###}",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void AddAgentCards(List<DashboardNode> nodes, IReadOnlyList<JsonElement> participants)
|
||||
{
|
||||
var visible = participants
|
||||
.OrderBy(participant => NumberValue(participant, "nextTurnInMinutes") ?? 999999)
|
||||
.Take(10)
|
||||
.ToArray();
|
||||
|
||||
for (var index = 0; index < visible.Length; index++)
|
||||
{
|
||||
var agent = visible[index];
|
||||
var identityId = StringValue(agent, "identityId") ?? $"agent-{index}";
|
||||
var column = index % 5;
|
||||
var row = index / 5;
|
||||
var active = !string.IsNullOrWhiteSpace(StringValue(agent, "activeJobId"));
|
||||
var selected = string.Equals(identityId, selectedIdentityId, StringComparison.Ordinal);
|
||||
nodes.Add(new DashboardNode(
|
||||
$"agent-{identityId}",
|
||||
$"{StringValue(agent, "displayName") ?? identityId}\n{StringValue(agent, "repoName") ?? "repo"}",
|
||||
"agent",
|
||||
-0.74 + (column * 0.37),
|
||||
-0.28 + (row * 0.22),
|
||||
0.31,
|
||||
0.17,
|
||||
selected ? "selected" : active ? "active" : Minutes(NumberValue(agent, "nextTurnInMinutes")))
|
||||
{
|
||||
IdentityId = identityId,
|
||||
Detail = $"load {NumberValue(agent, "currentLoad") ?? 0:0.##} heat {NumberValue(agent, "heat") ?? 0:0.##}",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void AddSelectedAgent(List<DashboardNode> nodes, JsonElement agent)
|
||||
{
|
||||
if (agent.ValueKind == JsonValueKind.Undefined)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var identityId = StringValue(agent, "identityId") ?? "";
|
||||
var faceState = TryGet(agent, "faceState");
|
||||
var counts = TryGet(faceState, "counts");
|
||||
var description = StringValue(agent, "description") ?? "No Face description registered.";
|
||||
nodes.Add(new DashboardNode(
|
||||
"agent-detail",
|
||||
$"{StringValue(agent, "displayName") ?? identityId} State\n{StringValue(agent, "repoName") ?? "repo"}",
|
||||
"state-detail",
|
||||
-0.42,
|
||||
0.52,
|
||||
0.55,
|
||||
0.30,
|
||||
BoolValue(faceState, "readable") == true ? "readable" : "unreadable")
|
||||
{
|
||||
IdentityId = identityId,
|
||||
Detail = $"memory {NumberValue(counts, "memory") ?? 0:0} pressures {NumberValue(counts, "pressures") ?? 0:0} constraints {NumberValue(agent, "constraintCount") ?? 0:0}\n{Truncate(description, 150)}",
|
||||
});
|
||||
|
||||
var leaves = FlattenLeaves(ArrayItems(TryGet(faceState, "tree")).ToArray()).Take(5).ToArray();
|
||||
if (string.IsNullOrWhiteSpace(selectedStatePath))
|
||||
{
|
||||
selectedStatePath = leaves.FirstOrDefault()?.Path ?? "";
|
||||
}
|
||||
|
||||
for (var index = 0; index < leaves.Length; index++)
|
||||
{
|
||||
var leaf = leaves[index];
|
||||
var selected = string.Equals(leaf.Path, selectedStatePath, StringComparison.Ordinal);
|
||||
nodes.Add(new DashboardNode(
|
||||
$"state-{index}",
|
||||
$"{leaf.Label}\n{leaf.Preview}",
|
||||
"state-leaf",
|
||||
0.34,
|
||||
0.24 + (index * 0.13),
|
||||
0.34,
|
||||
0.10,
|
||||
selected ? "open" : "leaf")
|
||||
{
|
||||
IdentityId = identityId,
|
||||
StatePath = leaf.Path,
|
||||
Detail = leaf.Detail,
|
||||
});
|
||||
}
|
||||
|
||||
var selectedLeaf = leaves.FirstOrDefault(leaf => string.Equals(leaf.Path, selectedStatePath, StringComparison.Ordinal));
|
||||
if (selectedLeaf != null && !string.IsNullOrWhiteSpace(selectedLeaf.Path))
|
||||
{
|
||||
nodes.Add(new DashboardNode(
|
||||
"state-detail",
|
||||
$"{selectedLeaf.Label}\n{selectedLeaf.Path}",
|
||||
"state-text",
|
||||
0.38,
|
||||
0.74,
|
||||
0.38,
|
||||
0.18,
|
||||
"detail")
|
||||
{
|
||||
IdentityId = identityId,
|
||||
StatePath = selectedLeaf.Path,
|
||||
Detail = Truncate(selectedLeaf.Detail, 280),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private DashboardState BuildMissingState() => new()
|
||||
{
|
||||
ProviderId = ProviderId,
|
||||
Title = "VoidBot Swarm",
|
||||
SelectedNodeId = "voidbot-missing",
|
||||
Nodes =
|
||||
[
|
||||
new DashboardNode("voidbot-missing", "VoidBot Swarm\nsnapshot missing", "swarm", 0.0, -0.10, 0.52, 0.24, "missing")
|
||||
{
|
||||
Detail = swarmStatePath,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
private DashboardState BuildErrorState(string error) => new()
|
||||
{
|
||||
ProviderId = ProviderId,
|
||||
Title = "VoidBot Swarm",
|
||||
SelectedNodeId = "voidbot-error",
|
||||
Nodes =
|
||||
[
|
||||
new DashboardNode("voidbot-error", "VoidBot Swarm\nstate read failed", "swarm", 0.0, -0.10, 0.52, 0.24, "error")
|
||||
{
|
||||
Detail = error,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
private static IEnumerable<VoidBotStateLeaf> FlattenLeaves(IReadOnlyList<JsonElement> nodes)
|
||||
{
|
||||
foreach (var node in nodes)
|
||||
{
|
||||
if (StringValue(node, "kind") == "leaf")
|
||||
{
|
||||
yield return new VoidBotStateLeaf(
|
||||
StringValue(node, "label") ?? "leaf",
|
||||
StringValue(node, "path") ?? "",
|
||||
StringValue(node, "preview") ?? "",
|
||||
StringValue(node, "detail") ?? StringValue(node, "preview") ?? "");
|
||||
}
|
||||
|
||||
foreach (var child in FlattenLeaves(ArrayItems(TryGet(node, "children")).ToArray()))
|
||||
{
|
||||
yield return child;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static JsonElement TryGet(JsonElement element, string property)
|
||||
{
|
||||
if (element.ValueKind == JsonValueKind.Object && element.TryGetProperty(property, out var child))
|
||||
{
|
||||
return child;
|
||||
}
|
||||
|
||||
return default;
|
||||
}
|
||||
|
||||
private static IEnumerable<JsonElement> ArrayItems(JsonElement element)
|
||||
{
|
||||
if (element.ValueKind != JsonValueKind.Array)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
||||
foreach (var item in element.EnumerateArray())
|
||||
{
|
||||
yield return item;
|
||||
}
|
||||
}
|
||||
|
||||
private static string? StringValue(JsonElement element, string property) => StringValue(TryGet(element, property));
|
||||
|
||||
private static string? StringValue(JsonElement element) =>
|
||||
element.ValueKind == JsonValueKind.String ? element.GetString() : null;
|
||||
|
||||
private static double? NumberValue(JsonElement element, string property) => NumberValue(TryGet(element, property));
|
||||
|
||||
private static double? NumberValue(JsonElement element) =>
|
||||
element.ValueKind == JsonValueKind.Number && element.TryGetDouble(out var value) ? value : null;
|
||||
|
||||
private static bool? BoolValue(JsonElement element, string property)
|
||||
{
|
||||
var child = TryGet(element, property);
|
||||
return child.ValueKind switch
|
||||
{
|
||||
JsonValueKind.True => true,
|
||||
JsonValueKind.False => false,
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
|
||||
private static string Minutes(double? value)
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
return value <= 0 ? "ready" : $"{value:0.#}m";
|
||||
}
|
||||
|
||||
private static string Truncate(string value, int max) =>
|
||||
value.Length <= max ? value : value[..Math.Max(0, max - 1)] + "...";
|
||||
}
|
||||
|
||||
internal sealed record VoidBotStateLeaf(string Label, string Path, string Preview, string Detail);
|
||||
|
||||
internal sealed class YggdrasilStreamPixelsProvider : MutableDashboardProvider
|
||||
{
|
||||
public const string ProviderId = "yggdrasil.streampixels.edge";
|
||||
|
|
@ -783,6 +1188,12 @@ internal sealed class DashboardNode(
|
|||
public string? Command { get; set; }
|
||||
|
||||
public string? Endpoint { get; set; }
|
||||
|
||||
public string? IdentityId { get; set; }
|
||||
|
||||
public string? StatePath { get; set; }
|
||||
|
||||
public string? Detail { get; set; }
|
||||
}
|
||||
|
||||
internal sealed class DashboardCommand
|
||||
|
|
|
|||
|
|
@ -251,3 +251,4 @@
|
|||
{"ts": "2026-05-31T01:06:44+01:00", "type": "verification", "status": "ok", "note": "Live Leap surface-claim proof captured artifacts/runtime/mimir-leap-surface-claims-clean.png. With AQUARIUM_DISABLE_RESERVOIR_HISTORY=1, Fensalir now presents the current reservoir resolver target instead of an unwritten history target; LeapUVC frames uploaded through the Fensalir-owned D3D12 texture, packed stereo depth dispatched, point-cloud compute generated 19,200 SDF/PBR/radiosity surface splats, point-list rendering stayed diagnostic at rendered 0, and visible Leap-derived splats reached presentation."}
|
||||
{"ts": "2026-05-31T01:20:43+01:00", "type": "verification", "status": "ok", "note": "Reservoir-history startup repaired for the Leap surface-claim path. Fensalir now compiles dedicated D3D12ReservoirHistoryUpdate.hlsl instead of the monolithic post shader for D3D12ReservoirHistoryUpdateCS; history-enabled live capture artifacts/runtime/mimir-leap-history-split-shader-visible.png completed without AQUARIUM_DISABLE_RESERVOIR_HISTORY, with 19,200 Leap surface splats, point-list rendering at 0, reservoir-update timing around 13 ms, and visible resolver output. Temporal/spatial reuse is intentionally not restored in the lean current-sample history shader yet."}
|
||||
{"ts": "2026-05-31T01:22:17+01:00", "type": "verification", "status": "ok", "note": "Eve dashboard broker cut: /eve/deck now routes provider-owned retained dashboard trees, /eve/deck/providers exposes switchboard/Mimir/StreamPixels manifests, and EveCanvas connects to /eve/deck with provider-card open-provider commands. Added typed CultMesh-compatible document shapes mimir.eve_dashboard_manifest.v1 and mimir.eve_dashboard_state.v1 while keeping live iPad transport WebSocket/TCP for LAN and SSH tunnel use. Smoke verified /health, provider catalog, WebSocket switchboard state, and open-provider transition to mimir.stream.layout."}
|
||||
{"ts": "2026-05-31T01:34:32+01:00", "type": "verification", "status": "ok", "note": "Eve dashboard broker gained native VoidBot provider voidbot.swarm. It reads VoidBot's existing .voidbot/status/swarm-state.json projection, exposes a provider manifest with CTB/agent-status/state-tree capabilities, renders upcoming turns as CTB cards, agent status cards, and selected Face state/detail nodes. Smoke verified /eve/deck/providers includes voidbot.swarm and open-provider switched to a VoidBot snapshot with paused swarm state, CTB cards, and agent detail."}
|
||||
|
|
|
|||
|
|
@ -304,13 +304,16 @@ accepted_design:
|
|||
`Mimir.EveDashboard` is the native Eve dashboard broker: `/eve/deck` sends
|
||||
retained dashboard trees, `/eve/dashboard` remains the compatibility
|
||||
endpoint, and `/eve/deck/providers` exposes provider manifests. Built-in
|
||||
providers are the switchboard, `mimir.stream.layout`, and
|
||||
providers are the switchboard, `mimir.stream.layout`, `voidbot.swarm`, and
|
||||
`yggdrasil.streampixels.edge`; launch-time external providers can be
|
||||
registered as `id|title|ws-url` descriptors for LAN or SSH-forwarded TCP
|
||||
surfaces. EveCanvas renders the scene graph and source panels natively in
|
||||
UIKit with multitouch transform editing, and provider-card taps send
|
||||
`open-provider`. Dashboard manifests and states now have typed
|
||||
CultMesh-compatible document shapes `mimir.eve_dashboard_manifest.v1` and
|
||||
`open-provider`. `voidbot.swarm` reads VoidBot's existing
|
||||
`.voidbot/status/swarm-state.json` projection, rendering the CTB rail as
|
||||
upcoming turn cards plus agent status cards and selected Face state detail.
|
||||
Dashboard manifests and states now have typed CultMesh-compatible document
|
||||
shapes `mimir.eve_dashboard_manifest.v1` and
|
||||
`mimir.eve_dashboard_state.v1`, while the live iPad lane stays
|
||||
WebSocket/TCP because it is the proven tunnelable transport. The Mimir
|
||||
stream-layout provider still uses fixture dashboard state; live binding to
|
||||
|
|
|
|||
Loading…
Reference in a new issue