@exellix/graph-engine 8.5.0 → 8.7.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 +23 -0
- package/README.md +2 -2
- package/dist/src/contract/graphRunContract.d.ts +37 -0
- package/dist/src/contract/graphRunContract.js +130 -0
- package/dist/src/contract/persistencyDefaults.d.ts +2 -0
- package/dist/src/contract/persistencyDefaults.js +2 -0
- package/dist/src/index.d.ts +7 -4
- package/dist/src/index.js +6 -2
- package/dist/src/inspection/contractInspection.js +7 -16
- package/dist/src/inspection/controlInspection.js +2 -2
- package/dist/src/inspection/nodeInspection.js +9 -10
- package/dist/src/inspection/types.d.ts +4 -13
- package/dist/src/integrations/activixExellixShared.js +2 -2
- package/dist/src/runtime/ExellixGraphRuntime.js +6 -3
- package/dist/src/runtime/buildAiTasksRunTaskRequest.d.ts +3 -8
- package/dist/src/runtime/buildAiTasksRunTaskRequest.js +1 -16
- package/dist/src/runtime/buildRunTaskTaskConfigurationForward.d.ts +3 -3
- package/dist/src/runtime/buildRunTaskTaskConfigurationForward.js +3 -7
- package/dist/src/runtime/executionMatrixHost.d.ts +2 -2
- package/dist/src/runtime/executionMatrixHost.js +2 -2
- package/dist/src/runtime/graphEngineLogMeta.js +2 -2
- package/dist/src/runtime/graphEngineLogxer.js +2 -2
- package/dist/src/runtime/resolveNarrixForTaskNode.d.ts +3 -7
- package/dist/src/runtime/resolveNarrixForTaskNode.js +4 -7
- package/dist/src/runtime/runTaskNodePlan.d.ts +10 -0
- package/dist/src/runtime/runTaskNodePlan.js +132 -0
- package/dist/src/runtime/runtimeObjects.d.ts +5 -5
- package/dist/src/runtime/runtimeObjects.js +5 -5
- package/dist/src/runtime/taskNodeRunTaskPreflight.js +6 -3
- package/dist/src/runtime/validateCanonicalGraphDocument.js +6 -7
- package/dist/src/types/aiTaskProfile.d.ts +12 -17
- package/dist/src/types/aiTaskProfile.js +12 -4
- package/dist/src/types/narrix.d.ts +33 -24
- package/dist/src/types/taskNodeConfiguration.d.ts +3 -2
- package/docs/handoff/graphs-studio-graphenix-2.7.3.md +13 -0
- package/package.json +22 -20
- package/dist/src/runtime/applyAiTaskProfileWebScopingToNarrix.d.ts +0 -15
- package/dist/src/runtime/applyAiTaskProfileWebScopingToNarrix.js +0 -43
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exellix/graph-engine",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Graph executor SDK",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -20,13 +20,14 @@
|
|
|
20
20
|
"dist/**",
|
|
21
21
|
".env.example",
|
|
22
22
|
"CHANGELOG.md",
|
|
23
|
-
"README.md"
|
|
23
|
+
"README.md",
|
|
24
|
+
"docs/handoff/**"
|
|
24
25
|
],
|
|
25
26
|
"scripts": {
|
|
26
27
|
"prebuild": "node scripts/clean-dist.mjs",
|
|
27
28
|
"build": "tsc",
|
|
28
29
|
"test": "npm run build && npm run check:no-legacy && tsx --test --test-force-exit --test-timeout=180000 --test-concurrency=2 tests/model-alias-canonical.test.ts tests/model-alias-execute.test.ts tests/model-alias-strategy.test.ts tests/model-alias-subnets.test.ts tests/ai-tasks-error-propagation.test.ts tests/reports-fixtures-pre-synthesis.test.ts tests/passthrough-parity.test.ts tests/step-retry-llm-call.test.ts tests/run-log-diagnostics.test.ts",
|
|
29
|
-
"test:full": "npm run build && npm run check:no-legacy && tsx --test --test-force-exit --test-timeout=180000 --test-concurrency=2 tests/graph-engine.test.ts tests/passthrough-parity.test.ts tests/task-node-run-task-preflight.test.ts tests/reports-fixtures-pre-synthesis.test.ts tests/model-alias-canonical.test.ts tests/model-alias-execute.test.ts tests/model-alias-strategy.test.ts tests/model-alias-subnets.test.ts tests/compile-host-patches.test.ts tests/reference-fixtures-compile.test.ts tests/step-retry-llm-call.test.ts",
|
|
30
|
+
"test:full": "npm run build && npm run check:no-legacy && tsx --test --test-force-exit --test-timeout=180000 --test-concurrency=2 tests/graph-engine.test.ts tests/graph-run-contract.test.ts tests/passthrough-parity.test.ts tests/task-node-run-task-preflight.test.ts tests/reports-fixtures-pre-synthesis.test.ts tests/model-alias-canonical.test.ts tests/model-alias-execute.test.ts tests/model-alias-strategy.test.ts tests/model-alias-subnets.test.ts tests/compile-host-patches.test.ts tests/reference-fixtures-compile.test.ts tests/step-retry-llm-call.test.ts",
|
|
30
31
|
"test:live": "npm run run:pre-synthesis",
|
|
31
32
|
"test:subnets-graph-fixture": "npm run build && node --test tests/subnets-graph.fixture.test.mjs",
|
|
32
33
|
"test:subnets-graph-live": "npm run build && node --env-file=.env --test tests/subnets-graph.live.test.mjs",
|
|
@@ -45,34 +46,35 @@
|
|
|
45
46
|
"license": "exellix-license",
|
|
46
47
|
"repository": {
|
|
47
48
|
"type": "git",
|
|
48
|
-
"url": "git@github.com
|
|
49
|
+
"url": "git+ssh://git@github.com/exellix/exellix-engine-mono-repo.git",
|
|
50
|
+
"directory": "graph-engine"
|
|
49
51
|
},
|
|
50
52
|
"publishConfig": {
|
|
51
53
|
"registry": "https://registry.npmjs.org/",
|
|
52
54
|
"access": "public"
|
|
53
55
|
},
|
|
54
56
|
"dependencies": {
|
|
55
|
-
"@exellix/ai-skills": "^6.12.
|
|
56
|
-
"@exellix/ai-tasks": "^10.0.
|
|
57
|
+
"@exellix/ai-skills": "^6.12.5",
|
|
58
|
+
"@exellix/ai-tasks": "^10.0.13",
|
|
57
59
|
"@x12i/activix": "^8.6.3",
|
|
58
|
-
"@x12i/catalox": "^5.9.
|
|
59
|
-
"@x12i/env": "^4.0.
|
|
60
|
+
"@x12i/catalox": "^5.9.8",
|
|
61
|
+
"@x12i/env": "^4.0.3",
|
|
60
62
|
"@x12i/funcx": "^4.9.13",
|
|
61
63
|
"@x12i/graphenix": "^2.5.0",
|
|
62
|
-
"@x12i/graphenix-authoring-format": "^2.
|
|
63
|
-
"@x12i/graphenix-core": "^2.
|
|
64
|
-
"@x12i/graphenix-executable-contracts": "^2.
|
|
65
|
-
"@x12i/graphenix-executable-format": "^2.
|
|
66
|
-
"@x12i/graphenix-execute-envelope": "^2.
|
|
64
|
+
"@x12i/graphenix-authoring-format": "^2.8.1",
|
|
65
|
+
"@x12i/graphenix-core": "^2.8.1",
|
|
66
|
+
"@x12i/graphenix-executable-contracts": "^2.8.1",
|
|
67
|
+
"@x12i/graphenix-executable-format": "^2.8.1",
|
|
68
|
+
"@x12i/graphenix-execute-envelope": "^2.8.1",
|
|
67
69
|
"@x12i/graphenix-format": "^2.0.0",
|
|
68
|
-
"@x12i/graphenix-plan-compiler": "^2.
|
|
69
|
-
"@x12i/graphenix-plan-format": "^2.
|
|
70
|
-
"@x12i/graphenix-task-node-format": "^2.
|
|
71
|
-
"@x12i/graphenix-trace-format": "^2.
|
|
70
|
+
"@x12i/graphenix-plan-compiler": "^2.8.1",
|
|
71
|
+
"@x12i/graphenix-plan-format": "^2.8.1",
|
|
72
|
+
"@x12i/graphenix-task-node-format": "^2.8.1",
|
|
73
|
+
"@x12i/graphenix-trace-format": "^2.8.1",
|
|
72
74
|
"@x12i/logxer": "^4.6.0",
|
|
73
|
-
"@x12i/memorix-descriptors": "1.
|
|
74
|
-
"@x12i/memorix-retrieval": "1.
|
|
75
|
-
"@x12i/memorix-writer": "1.
|
|
75
|
+
"@x12i/memorix-descriptors": "^1.10.0",
|
|
76
|
+
"@x12i/memorix-retrieval": "^1.15.0",
|
|
77
|
+
"@x12i/memorix-writer": "^1.3.0",
|
|
76
78
|
"@x12i/rendrix": "^4.3.0",
|
|
77
79
|
"@x12i/runx": "^1.3.2"
|
|
78
80
|
},
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { AiTaskProfileMetadata } from '../types/aiTaskProfile.js';
|
|
2
|
-
import type { NarrixPreProcessorConfig, ResolvedNarrixWirePayload, WebScopeQuestion } from '../types/narrix.js';
|
|
3
|
-
/**
|
|
4
|
-
* Maps graph-composer `string[]` web questions to narrix-web-scoper object shape.
|
|
5
|
-
* Synthetic ids are stable per index for a given node run.
|
|
6
|
-
*/
|
|
7
|
-
export declare function mapAiTaskProfileQuestionsToWebScopeQuestions(questions: string[]): WebScopeQuestion[];
|
|
8
|
-
/**
|
|
9
|
-
* Returns the resolved outbound `RunTaskRequest.narrix` payload.
|
|
10
|
-
*
|
|
11
|
-
* `enableWebScope` is forwarded from `taskConfiguration.narrix` (default `false`) and may be set to
|
|
12
|
-
* `true` when `taskConfiguration.aiTaskProfile.webScoping` is active. `webScopeQuestions` are derived
|
|
13
|
-
* only from the ai-task profile.
|
|
14
|
-
*/
|
|
15
|
-
export declare function applyAiTaskProfileWebScopingToNarrix(narrix: NarrixPreProcessorConfig | undefined, aiTaskProfile: AiTaskProfileMetadata | undefined): ResolvedNarrixWirePayload | undefined;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Maps graph-composer `string[]` web questions to narrix-web-scoper object shape.
|
|
3
|
-
* Synthetic ids are stable per index for a given node run.
|
|
4
|
-
*/
|
|
5
|
-
export function mapAiTaskProfileQuestionsToWebScopeQuestions(questions) {
|
|
6
|
-
const out = [];
|
|
7
|
-
let i = 0;
|
|
8
|
-
for (const q of questions) {
|
|
9
|
-
const t = typeof q === 'string' ? q.trim() : '';
|
|
10
|
-
if (!t)
|
|
11
|
-
continue;
|
|
12
|
-
out.push({ id: `aiTaskProfile-q-${i}`, question: t });
|
|
13
|
-
i += 1;
|
|
14
|
-
}
|
|
15
|
-
return out;
|
|
16
|
-
}
|
|
17
|
-
function webScopingFromProfileIsActive(profile) {
|
|
18
|
-
if (profile?.webScoping?.enabled !== true)
|
|
19
|
-
return false;
|
|
20
|
-
const qs = profile.webScoping.questions;
|
|
21
|
-
if (!Array.isArray(qs) || qs.length === 0)
|
|
22
|
-
return false;
|
|
23
|
-
return mapAiTaskProfileQuestionsToWebScopeQuestions(qs).length > 0;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Returns the resolved outbound `RunTaskRequest.narrix` payload.
|
|
27
|
-
*
|
|
28
|
-
* `enableWebScope` is forwarded from `taskConfiguration.narrix` (default `false`) and may be set to
|
|
29
|
-
* `true` when `taskConfiguration.aiTaskProfile.webScoping` is active. `webScopeQuestions` are derived
|
|
30
|
-
* only from the ai-task profile.
|
|
31
|
-
*/
|
|
32
|
-
export function applyAiTaskProfileWebScopingToNarrix(narrix, aiTaskProfile) {
|
|
33
|
-
const profileActive = webScopingFromProfileIsActive(aiTaskProfile);
|
|
34
|
-
if (narrix == null && !profileActive) {
|
|
35
|
-
return undefined;
|
|
36
|
-
}
|
|
37
|
-
const wire = (narrix != null ? { ...narrix } : {});
|
|
38
|
-
wire.enableWebScope = narrix?.enableWebScope === true || profileActive;
|
|
39
|
-
if (profileActive) {
|
|
40
|
-
wire.webScopeQuestions = mapAiTaskProfileQuestionsToWebScopeQuestions(aiTaskProfile.webScoping.questions);
|
|
41
|
-
}
|
|
42
|
-
return wire;
|
|
43
|
-
}
|