@primmel/primmel 1.21.6 → 1.21.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21992,6 +21992,19 @@ var CHECK_RULES = [
21992
21992
  "normal",
21993
21993
  "the reconfiguration phase 8 (TODO.reconfigure/09-subjects-twins-attestation.md, the power-type clause)"
21994
21994
  ),
21995
+ // ── C157: registry-dataclass-resolves — the MMEL v2 validation's
21996
+ // registry→dataclass leg, the rename contract's last flagged
21997
+ // invariant: a data_registry's data_class names a declared dataclass
21998
+ // (the pairing the workspace forms, the cross-registry pickers, and
21999
+ // the measurement table lookups key on; the legacy threw at load).
22000
+ R(
22001
+ "C157",
22002
+ "registry-dataclass-resolves",
22003
+ "instantiation",
22004
+ "error",
22005
+ "normal",
22006
+ "the MMEL v2 validation parity (the rename contract \u2014 TODO.editor/41)"
22007
+ ),
21995
22008
  // ── mapping (TODO.roadmap/04) ─────────────────────────────────────
21996
22009
  R(
21997
22010
  "C21",
@@ -28264,6 +28277,16 @@ function checkPackage(dir, options = {}) {
28264
28277
  }
28265
28278
  }
28266
28279
  }
28280
+ {
28281
+ for (const reg of standard.regs ?? []) {
28282
+ if (reg.data === null) {
28283
+ err(
28284
+ "C157",
28285
+ `data_registry ${reg.id}: the data_class resolves to no declared dataclass \u2014 the registry's rows are formless (the pairing the workspace forms and the pickers key on) (registry-dataclass-resolves)`
28286
+ );
28287
+ }
28288
+ }
28289
+ }
28267
28290
  {
28268
28291
  const approvalRoleIds = new Set((standard.roles ?? []).map((r) => r.id));
28269
28292
  const approvalStores = /* @__PURE__ */ new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primmel/primmel",
3
- "version": "1.21.6",
3
+ "version": "1.21.7",
4
4
  "description": "Primmel — parser, types, and serializer for the Primmel modelling language (successor to MMEL)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",