Describe workers through generic Eve items
This commit is contained in:
parent
11b3ddee5b
commit
d3fb4ea9ce
2 changed files with 13 additions and 0 deletions
|
|
@ -935,6 +935,10 @@ internal sealed class AetheriaDaemonYmirSmokeChecks
|
|||
"commander Eve roster must expose stable provider-owned worker identity");
|
||||
Require(worker.Props["capabilities"].Split(',').Contains(AetheriaRuntimeAgentTaskTypes.Explore),
|
||||
"commander Eve roster must expose provider-owned capability claims");
|
||||
RequireEqual("idle", worker.Props["status"],
|
||||
"commander Eve roster must publish generic status for runtime-independent lowering");
|
||||
Require(worker.Props["badges"].Split(',').Contains(AetheriaRuntimeAgentTaskTypes.Explore),
|
||||
"commander Eve roster must publish capability badges through the generic item contract");
|
||||
RequireEqual("", worker.Props["assignedTaskId"],
|
||||
"completed worker assignment must be visible as released on the Eve roster");
|
||||
RequireEqual("false", worker.Props["controlled"],
|
||||
|
|
|
|||
|
|
@ -231,12 +231,21 @@ namespace GameCult.Aetheria.State.Verse
|
|||
var atHome = home.Entity != null && home.Zone != null &&
|
||||
home.Zone.ZoneIndex == value.Zone.ZoneIndex &&
|
||||
(home.Entity.DockingBayAssignments ?? Array.Empty<int>()).Contains(value.Entity.EntityIndex);
|
||||
var hasHome = !string.IsNullOrWhiteSpace(value.Entity.HomeEntityId);
|
||||
var status = !value.Entity.IsActive ? "offline" : controlled ? "manual" :
|
||||
!string.IsNullOrWhiteSpace(value.Entity.AssignedAgentTaskId) ? "working" : atHome ? "home" : hasHome ? "returning" : "idle";
|
||||
var detail = !string.IsNullOrWhiteSpace(value.Entity.AssignedAgentTaskId)
|
||||
? $"Assigned {value.Entity.AssignedAgentTaskId}"
|
||||
: atHome ? "Docked at home" : controlled ? "Manual helm" : hasHome ? "Returning home" : "Awaiting orders";
|
||||
return Node(
|
||||
$"aetheria.starbridge.commander.agents.{SurfaceToken(value.Entity.EntityId)}",
|
||||
"agent.item",
|
||||
new[]
|
||||
{
|
||||
("label", value.Entity.Name),
|
||||
("status", status),
|
||||
("detail", detail),
|
||||
("badges", string.Join(",", value.Entity.AgentTaskCapabilities ?? Array.Empty<string>())),
|
||||
("entityId", value.Entity.EntityId),
|
||||
("zoneIndex", value.Zone.ZoneIndex.ToString(CultureInfo.InvariantCulture)),
|
||||
("entityIndex", value.Entity.EntityIndex.ToString(CultureInfo.InvariantCulture)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue