@sigloch/graph-api-core 5.2.1 → 5.3.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/graph-service.js +5 -27
- package/dist/se-descriptor.js +3 -1
- package/package.json +3 -3
package/dist/graph-service.js
CHANGED
|
@@ -72,7 +72,6 @@ export class GraphService {
|
|
|
72
72
|
let rejected = 0;
|
|
73
73
|
const violations = [];
|
|
74
74
|
const nodesToCreate = [];
|
|
75
|
-
const edgesToCreate = [];
|
|
76
75
|
// CR-195d: Hoist kinds/asil/method from attributes to top-level for SE schema
|
|
77
76
|
const isSESchema = this.ontology.name === 'SE';
|
|
78
77
|
for (const op of diff.operations) {
|
|
@@ -103,13 +102,6 @@ export class GraphService {
|
|
|
103
102
|
const node = await this.applyNodeCreate(op, isSESchema);
|
|
104
103
|
await this.storage.saveNodes([node]);
|
|
105
104
|
nodesToCreate.push(op.semanticId);
|
|
106
|
-
if (consumerId !== 'system') {
|
|
107
|
-
edgesToCreate.push({
|
|
108
|
-
sourceId: consumerId,
|
|
109
|
-
targetId: op.semanticId,
|
|
110
|
-
edgeType: 'produces',
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
105
|
applied++;
|
|
114
106
|
}
|
|
115
107
|
catch (e) {
|
|
@@ -142,13 +134,6 @@ export class GraphService {
|
|
|
142
134
|
const node = await this.applyNodeCreate(op, isSESchema);
|
|
143
135
|
await this.storage.saveNodes([node]);
|
|
144
136
|
nodesToCreate.push(op.semanticId);
|
|
145
|
-
if (consumerId !== 'system') {
|
|
146
|
-
edgesToCreate.push({
|
|
147
|
-
sourceId: consumerId,
|
|
148
|
-
targetId: op.semanticId,
|
|
149
|
-
edgeType: 'produces',
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
137
|
applied++;
|
|
153
138
|
}
|
|
154
139
|
catch (e) {
|
|
@@ -381,18 +366,11 @@ export class GraphService {
|
|
|
381
366
|
rejected++;
|
|
382
367
|
}
|
|
383
368
|
}
|
|
384
|
-
// CR-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
attributes: {},
|
|
390
|
-
})));
|
|
391
|
-
}
|
|
392
|
-
catch (e) {
|
|
393
|
-
console.warn('[GraphService] Failed to create audit produces edges:', e);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
369
|
+
// CR-SM-266 D5: der CR-195d-Block, der je neuem Knoten eine `produces`-Kante vom Consumer
|
|
370
|
+
// schrieb, ist WEG — mit dem TraceType und dem SESSION-Elementtyp. Er war schon vorher tot:
|
|
371
|
+
// 0 produces-Kanten in allen 9 aktiven Familie-Graphen nach 195 gegateten Versionen, weil
|
|
372
|
+
// der schreibende Weg (Bridge) read-only ist und der lebende (MCP-Gate) ihn nie ging.
|
|
373
|
+
// Provenance liegt seit CR-GC-347 in `.graphcode/audit.jsonl`, ausserhalb des Graphen.
|
|
396
374
|
// Add parse errors as violations
|
|
397
375
|
for (const err of diff.errors) {
|
|
398
376
|
violations.push({
|
package/dist/se-descriptor.js
CHANGED
|
@@ -33,7 +33,9 @@ export function projectToOntologyGraph(graph) {
|
|
|
33
33
|
source: e.sourceId,
|
|
34
34
|
target: e.targetId,
|
|
35
35
|
type: e.edgeType,
|
|
36
|
-
|
|
36
|
+
// CR-SM-266 D5: `category` ist nicht mehr Teil des Trace-Vertrags. Die Projektion hob es
|
|
37
|
+
// aus den Kanten-Attributen aufs Top-Level, wo R-08/R-18 es als Pruef-Ausnahme lasen —
|
|
38
|
+
// genau der Weg, ueber den eine Kante die Pattern-Matrix haette umgehen koennen.
|
|
37
39
|
label: e.attributes?.label,
|
|
38
40
|
weight: e.attributes?.weight ?? 1,
|
|
39
41
|
created_at: e.attributes?.created_at ?? '',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigloch/graph-api-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@sigloch/contracts": ">=5 <
|
|
46
|
+
"@sigloch/contracts": ">=5 <10",
|
|
47
47
|
"kuzu-wasm": "^0.11.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@sigloch/contracts": "
|
|
55
|
+
"@sigloch/contracts": ">=6 <10",
|
|
56
56
|
"kuzu-wasm": "^0.11.3"
|
|
57
57
|
}
|
|
58
58
|
}
|