fix(control-station): align lidar viewer and expose polygon

This commit is contained in:
DCCONSTRUCTIONS
2026-07-25 13:23:34 +03:00
parent c01712c30d
commit 881e97312b
9 changed files with 51 additions and 71 deletions
@@ -21,7 +21,7 @@ let stopPolygonWorker;
let PolygonWorkerContractError;
let workspaceById;
let workspacesForRoot;
let rootsForCapabilities;
let roots;
before(async () => {
server = await createServer({
@@ -51,7 +51,7 @@ before(async () => {
({
workspaceById,
workspacesForRoot,
rootsForCapabilities,
roots,
} = await server.ssrLoadModule("/src/productModel.ts"));
});
@@ -290,7 +290,7 @@ function commandAcceptance(overrides = {}) {
};
}
test("Polygon is a worker-gated product root and keeps a compatible direct route", () => {
test("Polygon stays visible while worker capability gates live actions", () => {
assert.deepEqual(resolvePolygonRunRoute("?workspace=polygon-run"), {
active: true,
runId: null,
@@ -320,16 +320,7 @@ test("Polygon is a worker-gated product root and keeps a compatible direct route
workspacesForRoot("system").some(({ id }) => id === "polygon-run"),
false,
);
assert.equal(
rootsForCapabilities({ polygonWorkerAvailable: false })
.some(({ id }) => id === "polygon"),
false,
);
assert.equal(
rootsForCapabilities({ polygonWorkerAvailable: true })
.some(({ id }) => id === "polygon"),
true,
);
assert.equal(roots.some(({ id }) => id === "polygon"), true);
});
test("Polygon contracts decode path-free evidence and preserve the safety boundary", () => {