@sigloch/graph-view-edit 0.10.0 → 0.11.0

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.
package/dist/index.html CHANGED
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>graph-view-edit</title>
7
- <script type="module" crossorigin src="/assets/index-BOif4jTy.js"></script>
8
- <link rel="stylesheet" crossorigin href="/assets/index-BtUB8acj.css">
7
+ <script type="module" crossorigin src="/assets/index-DqiKdkrq.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-Cf27gkg2.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigloch/graph-view-edit",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "React/Vite viewer+editor over @sigloch/graphcode — 12 graph-views + 16 doc-views via a declarative View-Registry, plus an SE-Dashboard sibling route. Reads docs/graph/<member>.graph.json client-side (no 2nd Kuzu handle).",
5
5
  "type": "module",
6
6
  "bin": {
package/vite.config.js CHANGED
@@ -467,6 +467,13 @@ function cohesionRollup(rawModules) {
467
467
  lcom4: m.lcom4 ?? null,
468
468
  fanIn: m.fanIn ?? null,
469
469
  fanOut: m.fanOut ?? null,
470
+ // CR-GVE-293: zwei Felder, die der Host seit contracts 22 mitliefert und die
471
+ // diese Whitelist bis dahin still verschluckt hat. `uphillDependencies` ist
472
+ // Messung ohne Urteil (CR-SM-301), `rollupContainer` der Grund, warum MT-02
473
+ // ein Modul NICHT beurteilt (CR-SM-263) — ohne das Flag urteilte gve dort,
474
+ // wo der Host schweigt.
475
+ uphillDependencies: m.uphillDependencies ?? null,
476
+ rollupContainer: m.rollupContainer ?? false,
470
477
  }));
471
478
  const connections = (m) => (m.cohesion ? m.cohesion.internal + m.cohesion.external : -1);
472
479
  rows.sort((a, b) => connections(b) - connections(a) || a.moduleId.localeCompare(b.moduleId));
@@ -501,6 +508,9 @@ export function architecturePayload({ hostMetrics, hostError, ontologyJson, repo
501
508
  policy: hostMetrics.policy,
502
509
  policySource: hostMetrics.policySource ?? null,
503
510
  fit: hostMetrics.fit ?? null,
511
+ // CR-GVE-293: Kritikalität je FUNC (CR-SM-314) — eine Host-Zahl wie `fit`,
512
+ // unverändert durchgereicht; die Schwelle steht in `policy.criticality`.
513
+ functions: hostMetrics.functions ?? null,
504
514
  };
505
515
  }
506
516
  const local = readMetricPolicy(repoRoot);
@@ -516,6 +526,8 @@ export function architecturePayload({ hostMetrics, hostError, ontologyJson, repo
516
526
  // Zielrichtung aus der Profildatei bleibt lesbar, der Zielwert kommt bewusst
517
527
  // NICHT mit: er ist nur zusammen mit dem Ist-Wert sinnvoll, gegen den er steht.
518
528
  fit: null,
529
+ // Ebenso host-only: ohne Host keine Kettenzahl je FUNC, also null, nicht [].
530
+ functions: null,
519
531
  profile: targetProfilePayload(repoRoot),
520
532
  };
521
533
  }