feat(foundry): complete HGeoZone live layer

This commit is contained in:
Codex
2026-07-22 09:25:32 +03:00
parent de060c105b
commit 309cddef73
9 changed files with 391 additions and 83 deletions
+15
View File
@@ -0,0 +1,15 @@
import assert from "node:assert/strict";
import test from "node:test";
import { isMapLiveDataSlot } from "./map-live-data-slot.mjs";
test("point and zone streams are approved Map live-data slots", () => {
assert.equal(isMapLiveDataSlot({ id: "points", kind: "entity-stream" }), true);
assert.equal(isMapLiveDataSlot({ id: "zones", kind: "zone-stream" }), true);
});
test("non-entity Map slots cannot receive a data-product binding", () => {
for (const kind of ["trace-stream", "route-stream", "selection", "command", "assistant", undefined]) {
assert.equal(isMapLiveDataSlot(kind ? { id: "other", kind } : null), false);
}
});