@x12i/graphenix-plan-format 1.0.0 → 1.1.1

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.
Files changed (28) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/test/golden-fixtures.test.d.ts +2 -0
  6. package/dist/test/golden-fixtures.test.d.ts.map +1 -0
  7. package/dist/test/golden-fixtures.test.js +31 -0
  8. package/dist/test/golden-fixtures.test.js.map +1 -0
  9. package/dist/validators/validate-executable-plan-v2.d.ts.map +1 -1
  10. package/dist/validators/validate-executable-plan-v2.js +1 -81
  11. package/dist/validators/validate-executable-plan-v2.js.map +1 -1
  12. package/dist/validators/validate-execution-unit.d.ts +13 -0
  13. package/dist/validators/validate-execution-unit.d.ts.map +1 -0
  14. package/dist/validators/validate-execution-unit.js +221 -0
  15. package/dist/validators/validate-execution-unit.js.map +1 -0
  16. package/dist/validators/validate-node-execution-plan.d.ts +6 -0
  17. package/dist/validators/validate-node-execution-plan.d.ts.map +1 -0
  18. package/dist/validators/validate-node-execution-plan.js +39 -0
  19. package/dist/validators/validate-node-execution-plan.js.map +1 -0
  20. package/fixtures/content-pipeline.plan.json +1292 -0
  21. package/fixtures/nodes/node-audience-insights.plan.json +184 -0
  22. package/fixtures/nodes/node-execution-strategies.plan.json +162 -0
  23. package/fixtures/nodes/node-hand-authored-units.plan.json +75 -0
  24. package/fixtures/nodes/node-input-synthesis-profile.plan.json +105 -0
  25. package/fixtures/nodes/node-narrative-preprocessor.plan.json +112 -0
  26. package/fixtures/nodes/node-post-audit.plan.json +106 -0
  27. package/fixtures/nodes/node-professional-answer-plain.plan.json +70 -0
  28. package/package.json +6 -3
@@ -0,0 +1,106 @@
1
+ {
2
+ "nodeId": "node:professional-answer",
3
+ "nodeType": "task",
4
+ "executionClass": "aiTask",
5
+ "skillKey": "professional-answer",
6
+ "selectedCases": {
7
+ "graphModelCaseId": "default"
8
+ },
9
+ "modelSlots": {
10
+ "preActionModel": {
11
+ "selection": {
12
+ "kind": "profileChoice",
13
+ "key": "cheap/default"
14
+ },
15
+ "source": "graphDefault",
16
+ "inherited": true,
17
+ "graphCaseId": "default"
18
+ },
19
+ "skillModel": {
20
+ "selection": {
21
+ "kind": "profileChoice",
22
+ "key": "vol/default"
23
+ },
24
+ "source": "graphDefault",
25
+ "inherited": true,
26
+ "graphCaseId": "default"
27
+ },
28
+ "postActionModel": {
29
+ "selection": {
30
+ "kind": "profileChoice",
31
+ "key": "cheap/default"
32
+ },
33
+ "source": "graphDefault",
34
+ "inherited": true,
35
+ "graphCaseId": "default"
36
+ }
37
+ },
38
+ "invokeContract": {
39
+ "pipeline": {
40
+ "executionStrategies": [],
41
+ "aiTaskStrategies": {
42
+ "post": "audit"
43
+ }
44
+ }
45
+ },
46
+ "executionUnits": [
47
+ {
48
+ "unitId": "unit:node:professional-answer:main",
49
+ "nodeId": "node:professional-answer",
50
+ "unitKind": "mainSkill",
51
+ "invokeMode": "mainRunTask",
52
+ "order": 0,
53
+ "skillKey": "professional-answer",
54
+ "modelSlot": "skillModel",
55
+ "modelSelection": {
56
+ "kind": "profileChoice",
57
+ "key": "vol/default"
58
+ },
59
+ "modelSource": "graphDefault",
60
+ "invokeContract": {
61
+ "reads": [],
62
+ "writes": [
63
+ {
64
+ "destination": "response",
65
+ "key": "skillOutput",
66
+ "mode": "replace"
67
+ }
68
+ ]
69
+ },
70
+ "sourcePath": "/graph/nodes/0/parameters/skillKey"
71
+ },
72
+ {
73
+ "unitId": "unit:node:professional-answer:post:0",
74
+ "nodeId": "node:professional-answer",
75
+ "unitKind": "externalPostUtility",
76
+ "invokeMode": "externalRunTask",
77
+ "order": 1,
78
+ "strategyKey": "audit",
79
+ "actionKey": "audit",
80
+ "modelSlot": "postActionModel",
81
+ "modelSelection": {
82
+ "kind": "profileChoice",
83
+ "key": "cheap/default"
84
+ },
85
+ "modelSource": "graphDefault",
86
+ "invokeContract": {
87
+ "reads": [
88
+ "response.skillOutput",
89
+ "executionMemory.input"
90
+ ],
91
+ "writes": [
92
+ {
93
+ "destination": "response",
94
+ "key": "auditedOutput",
95
+ "mode": "replace"
96
+ }
97
+ ]
98
+ },
99
+ "sourcePath": "/graph/nodes/0/parameters/taskConfiguration/aiTaskStrategies/post"
100
+ }
101
+ ],
102
+ "planVersion": "graphenix.node-plan/v2.1",
103
+ "compiledAt": "2026-06-07T15:07:47.722Z",
104
+ "compilerVersion": "1.1.0",
105
+ "sourcePath": "/graph/nodes/0"
106
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "nodeId": "node:professional-answer",
3
+ "nodeType": "task",
4
+ "executionClass": "aiTask",
5
+ "skillKey": "professional-answer",
6
+ "selectedCases": {
7
+ "graphModelCaseId": "default"
8
+ },
9
+ "modelSlots": {
10
+ "preActionModel": {
11
+ "selection": {
12
+ "kind": "profileChoice",
13
+ "key": "cheap/default"
14
+ },
15
+ "source": "graphDefault",
16
+ "inherited": true,
17
+ "graphCaseId": "default"
18
+ },
19
+ "skillModel": {
20
+ "selection": {
21
+ "kind": "profileChoice",
22
+ "key": "vol/default"
23
+ },
24
+ "source": "graphDefault",
25
+ "inherited": true,
26
+ "graphCaseId": "default"
27
+ },
28
+ "postActionModel": {
29
+ "selection": {
30
+ "kind": "profileChoice",
31
+ "key": "cheap/default"
32
+ },
33
+ "source": "graphDefault",
34
+ "inherited": true,
35
+ "graphCaseId": "default"
36
+ }
37
+ },
38
+ "invokeContract": {},
39
+ "executionUnits": [
40
+ {
41
+ "unitId": "unit:node:professional-answer:main",
42
+ "nodeId": "node:professional-answer",
43
+ "unitKind": "mainSkill",
44
+ "invokeMode": "mainRunTask",
45
+ "order": 0,
46
+ "skillKey": "professional-answer",
47
+ "modelSlot": "skillModel",
48
+ "modelSelection": {
49
+ "kind": "profileChoice",
50
+ "key": "vol/default"
51
+ },
52
+ "modelSource": "graphDefault",
53
+ "invokeContract": {
54
+ "reads": [],
55
+ "writes": [
56
+ {
57
+ "destination": "response",
58
+ "key": "skillOutput",
59
+ "mode": "replace"
60
+ }
61
+ ]
62
+ },
63
+ "sourcePath": "/graph/nodes/0/parameters/skillKey"
64
+ }
65
+ ],
66
+ "planVersion": "graphenix.node-plan/v2.1",
67
+ "compiledAt": "2026-06-07T15:07:47.702Z",
68
+ "compilerVersion": "1.1.0",
69
+ "sourcePath": "/graph/nodes/0"
70
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x12i/graphenix-plan-format",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "ExecutableGraphPlan format: plan schema validation and canonicalization.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,10 +15,12 @@
15
15
  },
16
16
  "scripts": {
17
17
  "build": "tsc -p tsconfig.json",
18
- "clean": "rimraf dist"
18
+ "clean": "rimraf dist",
19
+ "test": "npm run build && node --test dist/test/*.test.js"
19
20
  },
20
21
  "files": [
21
22
  "dist",
23
+ "fixtures",
22
24
  "README.md"
23
25
  ],
24
26
  "keywords": [
@@ -42,10 +44,11 @@
42
44
  },
43
45
  "dependencies": {
44
46
  "@x12i/graphenix-authoring-format": "^1.0.0",
45
- "@x12i/graphenix-executable-contracts": "^1.0.0"
47
+ "@x12i/graphenix-executable-contracts": "^1.1.0"
46
48
  },
47
49
  "devDependencies": {
48
50
  "@types/node": "^22.10.1",
51
+ "@x12i/graphenix-plan-compiler": "^1.1.1",
49
52
  "rimraf": "^6.0.1",
50
53
  "typescript": "^5.6.3"
51
54
  }