feat(device-plane): add universal adapter acceptance boundary

This commit is contained in:
Codex
2026-08-11 19:11:48 +03:00
parent 227c7c26c1
commit 393741f1bd
26 changed files with 1887 additions and 127 deletions
@@ -0,0 +1,17 @@
import assert from "node:assert/strict";
import test from "node:test";
import { DEVICE_ADAPTER_CATALOG } from "../src/index.mjs";
test("allowlists ARUSNAVI B2 as the first adapter without making Gateway vendor-specific", () => {
assert.deepEqual(DEVICE_ADAPTER_CATALOG.registry.adapterRefs, ["arusnavi-b2"]);
assert.deepEqual(
DEVICE_ADAPTER_CATALOG.registry.profileRefs,
["arusnavi.b2.internal.v1"],
);
const registration = DEVICE_ADAPTER_CATALOG.registry.resolveProfile(
DEVICE_ADAPTER_CATALOG.defaultProfileRef,
);
assert.equal(registration.adapter.runtimePackageRef, "@nodedc/arusnavi-b2-adapter");
assert.equal(registration.profile.model, "B2");
});