@exellix/graph-composer 2.8.0 → 2.10.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/CHANGELOG.md +15 -0
- package/dist/canonicalGraphDocument.d.ts.map +1 -1
- package/dist/canonicalGraphDocument.js +27 -1
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.10.0 — Graphenix 2.5.0 jobMemory.context alignment
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- **Peer / dev dependencies:** `@exellix/graph-engine` ^8.4.0.
|
|
8
|
+
- **npm overrides** — `@x12i/graphenix-*` **^2.5.0** (format ^2.0.0).
|
|
9
|
+
- **Canonical graph shell** — `jobMemory` is a allowed root key (declarative `context[]` defaults); strips runtime `rows` if authors embed them.
|
|
10
|
+
|
|
11
|
+
## 2.9.0 — Graphenix 2.4.0 PRE synthesis alignment
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **Peer / dev dependencies:** `@exellix/graph-engine` ^8.3.0, `@exellix/ai-tasks` ^10.0.4, `@exellix/ai-skills` ^6.12.0.
|
|
16
|
+
- **npm overrides** — `@x12i/graphenix-*` **^2.4.0** (format ^2.0.0); PRE synthesis default trio at runtime.
|
|
17
|
+
|
|
3
18
|
## 2.7.12 — Graphenix 2.1.0 coordinated release
|
|
4
19
|
|
|
5
20
|
### Changed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalGraphDocument.d.ts","sourceRoot":"","sources":["../src/canonicalGraphDocument.ts"],"names":[],"mappings":"AAAA;;GAEG;AAwcH,qFAAqF;AACrF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAc7E;
|
|
1
|
+
{"version":3,"file":"canonicalGraphDocument.d.ts","sourceRoot":"","sources":["../src/canonicalGraphDocument.ts"],"names":[],"mappings":"AAAA;;GAEG;AAwcH,qFAAqF;AACrF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAc7E;AAyBD,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAkCtF;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAWpF"}
|
|
@@ -7,6 +7,7 @@ const CANONICAL_TOP_LEVEL_KEYS = new Set([
|
|
|
7
7
|
"version",
|
|
8
8
|
"modelConfig",
|
|
9
9
|
"jobKnowledge",
|
|
10
|
+
"jobMemory",
|
|
10
11
|
"nodes",
|
|
11
12
|
"edges",
|
|
12
13
|
"variables",
|
|
@@ -16,7 +17,6 @@ const CANONICAL_TOP_LEVEL_KEYS = new Set([
|
|
|
16
17
|
const FORBIDDEN_ROOT_RUNTIME_KEYS = new Set([
|
|
17
18
|
"input",
|
|
18
19
|
"inputs",
|
|
19
|
-
"jobMemory",
|
|
20
20
|
"taskMemory",
|
|
21
21
|
"executionMemory",
|
|
22
22
|
"outputsMemory",
|
|
@@ -433,6 +433,30 @@ export function normalizeNodesToArray(graph) {
|
|
|
433
433
|
graph.nodes = next;
|
|
434
434
|
return true;
|
|
435
435
|
}
|
|
436
|
+
/** Strip runtime-populated `rows` from declarative `jobMemory.context[]` entries. */
|
|
437
|
+
function stripRuntimePopulatedJobMemoryContext(jobMemory) {
|
|
438
|
+
const context = jobMemory.context;
|
|
439
|
+
if (!Array.isArray(context))
|
|
440
|
+
return false;
|
|
441
|
+
let changed = false;
|
|
442
|
+
for (const entry of context) {
|
|
443
|
+
const rec = readRecord(entry);
|
|
444
|
+
if (rec !== undefined && "rows" in rec) {
|
|
445
|
+
delete rec.rows;
|
|
446
|
+
changed = true;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return changed;
|
|
450
|
+
}
|
|
451
|
+
function canonicalizeGraphJobMemory(graph) {
|
|
452
|
+
const jobMemory = readRecord(graph.jobMemory);
|
|
453
|
+
if (jobMemory === undefined)
|
|
454
|
+
return false;
|
|
455
|
+
if (!stripRuntimePopulatedJobMemoryContext(jobMemory))
|
|
456
|
+
return false;
|
|
457
|
+
graph.jobMemory = jobMemory;
|
|
458
|
+
return true;
|
|
459
|
+
}
|
|
436
460
|
export function canonicalizeGraphDocumentShell(graph) {
|
|
437
461
|
let changed = false;
|
|
438
462
|
if (normalizeNodesToArray(graph))
|
|
@@ -443,6 +467,8 @@ export function canonicalizeGraphDocumentShell(graph) {
|
|
|
443
467
|
changed = true;
|
|
444
468
|
if (canonicalizeGraphRootModelConfig(graph))
|
|
445
469
|
changed = true;
|
|
470
|
+
if (canonicalizeGraphJobMemory(graph))
|
|
471
|
+
changed = true;
|
|
446
472
|
for (const key of Object.keys(graph)) {
|
|
447
473
|
if (!CANONICAL_TOP_LEVEL_KEYS.has(key)) {
|
|
448
474
|
if (FORBIDDEN_ROOT_RUNTIME_KEYS.has(key)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exellix/graph-composer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -64,21 +64,21 @@
|
|
|
64
64
|
},
|
|
65
65
|
"homepage": "https://github.com/woroces/graph-composer#readme",
|
|
66
66
|
"overrides": {
|
|
67
|
-
"@x12i/graphenix-authoring-format": "^2.
|
|
68
|
-
"@x12i/graphenix-core": "^2.0
|
|
69
|
-
"@x12i/graphenix-executable-contracts": "^2.
|
|
70
|
-
"@x12i/graphenix-executable-format": "^2.
|
|
71
|
-
"@x12i/graphenix-execute-envelope": "^2.
|
|
67
|
+
"@x12i/graphenix-authoring-format": "^2.5.0",
|
|
68
|
+
"@x12i/graphenix-core": "^2.5.0",
|
|
69
|
+
"@x12i/graphenix-executable-contracts": "^2.5.0",
|
|
70
|
+
"@x12i/graphenix-executable-format": "^2.5.0",
|
|
71
|
+
"@x12i/graphenix-execute-envelope": "^2.5.0",
|
|
72
72
|
"@x12i/graphenix-format": "^2.0.0",
|
|
73
|
-
"@x12i/graphenix-plan-compiler": "^2.
|
|
74
|
-
"@x12i/graphenix-plan-format": "^2.
|
|
75
|
-
"@x12i/graphenix-task-node-format": "^2.
|
|
76
|
-
"@x12i/graphenix-trace-format": "^2.0
|
|
73
|
+
"@x12i/graphenix-plan-compiler": "^2.5.0",
|
|
74
|
+
"@x12i/graphenix-plan-format": "^2.5.0",
|
|
75
|
+
"@x12i/graphenix-task-node-format": "^2.5.0",
|
|
76
|
+
"@x12i/graphenix-trace-format": "^2.5.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@exellix/ai-skills": "^6.
|
|
80
|
-
"@exellix/ai-tasks": "^10.0.
|
|
81
|
-
"@exellix/graph-engine": "^8.
|
|
79
|
+
"@exellix/ai-skills": "^6.12.0",
|
|
80
|
+
"@exellix/ai-tasks": "^10.0.4",
|
|
81
|
+
"@exellix/graph-engine": "^8.4.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependenciesMeta": {
|
|
84
84
|
"@exellix/graph-engine": {
|
|
@@ -98,9 +98,9 @@
|
|
|
98
98
|
"@x12i/logxer": "^4.6.0"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
-
"@exellix/ai-skills": "^6.
|
|
102
|
-
"@exellix/ai-tasks": "^10.0.
|
|
103
|
-
"@exellix/graph-engine": "^8.
|
|
101
|
+
"@exellix/ai-skills": "^6.12.0",
|
|
102
|
+
"@exellix/ai-tasks": "^10.0.4",
|
|
103
|
+
"@exellix/graph-engine": "^8.4.0",
|
|
104
104
|
"@types/node": "^22.10.2",
|
|
105
105
|
"@x12i/rendrix": "^4.3.0",
|
|
106
106
|
"nx-config2": "^3.6.5",
|