feat(starbridge): publish commander and pilot surfaces

This commit is contained in:
Meta Vens 2026-07-11 00:51:50 +01:00
commit fdcff0f2d6
7 changed files with 142 additions and 17 deletions

View file

@ -10,7 +10,17 @@ assert.equal(pack.ownerRepo, "Aetheria");
const advertisement = read(pack.advertisementPath);
assert.equal(advertisement.providerId, pack.providerId);
assert.ok(advertisement.surfaces.some((surface) => surface.surfaceId === "aetheria.daemon.game" && surface.worldInteraction?.projectionKind === "provider-authored-world-surface"));
const starbridgeSurfaces = advertisement.surfaces.filter((surface) =>
surface.surfaceId === "aetheria.starbridge.commander" ||
surface.surfaceId === "aetheria.starbridge.pilot");
assert.equal(starbridgeSurfaces.length, 2);
assert.deepEqual(new Set(starbridgeSurfaces.map((surface) => surface.audience)), new Set(["commander", "pilot"]));
for (const surface of starbridgeSurfaces) {
assert.equal(surface.worldInteraction?.projectionKind, "provider-authored-world-surface");
assert.equal(surface.worldInteraction?.commandBoundary, "aetheria.daemon.commands");
assert.ok(surface.worldInteraction?.loweringTargets.includes("electron-shell"));
assert.ok(surface.worldInteraction?.loweringTargets.includes("unity-scene"));
}
assert.ok(advertisement.surfaces.some((surface) => surface.surfaceId === "aetheria.daemon.editor" && surface.worldInteraction?.projectionKind === "provider-authored-world-editor-surface"));
for (const fixture of pack.fixtures) {