feat(gelios): expand safe B2 telemetry registry

This commit is contained in:
Codex
2026-08-05 15:20:23 +03:00
parent 0688516003
commit b48b6dbfc9
7 changed files with 212 additions and 0 deletions
@@ -17,6 +17,10 @@ import {
geliosProviderPackageV11,
geliosTelemetryFieldRegistryV4,
} from "../providers/gelios/v11/index.mjs";
import {
geliosProviderPackageV14,
geliosTelemetryFieldRegistryV6,
} from "../providers/gelios/v14/index.mjs";
const positionsConnection = instantiateL2Connection(geliosProviderPackageV11, {
tenantId: "tenant-compiler-fixture",
@@ -122,6 +126,25 @@ assert.equal(Object.isFrozen(positionsPlan), true);
assert.equal(Object.isFrozen(positionsPlan.steps), true);
assert.equal(Object.isFrozen(positionsPlan.graphBlueprint), true);
const operationalConnection = instantiateL2Connection(geliosProviderPackageV14, {
tenantId: "tenant-compiler-fixture",
connectionId: "gelios-operational-telemetry-fixture",
collectionProfileId: "gelios.positions.current.realtime.v7",
providerCredentialRef: "ndc-credref:provider-compiler-fixture-0001",
});
const operationalPlan = compileL2ExecutionPlan(
geliosProviderPackageV14,
operationalConnection,
{ telemetryFieldRegistry: geliosTelemetryFieldRegistryV6 },
);
assert.deepEqual(validateL2ExecutionPlan(operationalPlan), { ok: true, errors: [] });
assert.equal(
operationalPlan.steps
.find((step) => step.kind === "semantic_mapping")
.config.telemetryProjection.entries.length,
45,
);
const clonedPlan = compileL2ExecutionPlan(
structuredClone(geliosProviderPackageV11),
structuredClone(positionsConnection),