@exellix/graph-engine 8.1.0 → 8.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.
package/CHANGELOG.md
CHANGED
|
@@ -7,10 +7,22 @@
|
|
|
7
7
|
- **`compileExellixExecutablePlan` input is `AuthoringGraphDocument` only** — removed `migrateLegacyGraphModelObjectToGraphenixExecutable` re-export and all legacy migration hooks. Compile = `validateAuthoringGraph` → `compileExecutablePlanV2` → `validateExecutablePlanV2`.
|
|
8
8
|
- **`buildGraphExecutionRequest` (matrix host)** now takes `{ doc: AuthoringGraphDocument, runtime }` instead of `{ model: GraphModelObject, runtime }`.
|
|
9
9
|
- Studio execute adapter delegates to `@x12i/graphenix-execute-envelope` ^1.1.0 (authoring graph on the wire).
|
|
10
|
+
- **`@exellix/ai-tasks` ^9.0.0 — nodePlan-only wire:** every outbound `runTask` requires frozen `nodePlan` (from compiled `plan.nodePlans` or runtime synthesis). When `nodePlan` is set, graph-engine **does not** send root `modelConfig`, `executionPipeline`, `taskConfiguration`, `includeContextInPrompt`, or `llmCall`. Model slots live on `nodePlan.executionUnits[].modelSelection`; ai-tasks runs PRE/MAIN/POST units inside a **single** `runTask` per task node (graph-engine no longer loops strategy phases on the hot path).
|
|
11
|
+
- **`buildTaskNodeRunTaskRequest` / preflight** mirror the execute path: synthesize or resolve `nodePlan`, pass `executionTrace`, forbid legacy wire fields.
|
|
10
12
|
|
|
11
13
|
### Changed
|
|
12
14
|
|
|
13
|
-
- Dependency floor: `@x12i/graphenix
|
|
15
|
+
- Dependency floor: `@x12i/graphenix-authoring-format` ^1.2.0 (canonical model-config module: `readGraphJobModelDefaults`, `mergeEffectiveModelConfig`, `normalizeNodeOverrideForPersist`, validators), `@x12i/graphenix-executable-format` ^2.1.3 (transitive `@x12i/graphenix-authoring-analysis` ^1.2.0); `@x12i/graphenix-plan-compiler`, `executable-contracts`, `execute-envelope`, `plan-format` remain ^1.1.0.
|
|
16
|
+
- Dependency: `@exellix/ai-tasks` ^9.0.0.
|
|
17
|
+
- **Compile host post-patches** (upstream gaps until CRS items land): `patchEntryGatesFromGraphEntryDataFilters` lifts `metadata.graphEntry.dataFilters` into `plan.deferredGates.entryGates`; `patchInvokeContractReadPathsForExecutionMemory` prefixes bare `invokeContract.reads` paths with `executionMemory.` when the root is not allowlisted.
|
|
18
|
+
- **Testkit:** `flatTestGraphToAuthoringDocument` bridges legacy flat test graphs to `AuthoringGraphDocument`; model-alias tests split for stable `tsx --test` execution.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- **`runTaskNodePlan` helpers:** `resolveRunTaskNodePlan`, `patchNodePlanMainModelFromWire`, `nodePlanFromFinalizerPlan`.
|
|
23
|
+
- **Tests:** `compile-host-patches.test.ts`, split `model-alias-*` suites, `runTaskNodePlanAssertions` testkit helpers.
|
|
24
|
+
|
|
25
|
+
See [`BREAKING-CHANGES.md`](BREAKING-CHANGES.md) §8.1.0 (ai-tasks 9).
|
|
14
26
|
|
|
15
27
|
## 8.0.2
|
|
16
28
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared helpers for model alias contract tests.
|
|
3
|
+
*/
|
|
4
|
+
export declare const EMPTY_GRAPH_RESPONSE: {
|
|
5
|
+
shape: {};
|
|
6
|
+
};
|
|
7
|
+
export declare function modelConfigCases(preActionModel: string, skillModel: string, postActionModel: string): {
|
|
8
|
+
cases: {
|
|
9
|
+
modelConfig: {
|
|
10
|
+
preActionModel: string;
|
|
11
|
+
skillModel: string;
|
|
12
|
+
postActionModel: string;
|
|
13
|
+
};
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
export declare function compiledModelWire(preActionModel: string, skillModel: string, postActionModel: string): {
|
|
17
|
+
preActionModel: string;
|
|
18
|
+
skillModel: string;
|
|
19
|
+
postActionModel: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function mainSkillUnit(req: {
|
|
22
|
+
nodePlan?: {
|
|
23
|
+
executionUnits?: Array<Record<string, unknown>>;
|
|
24
|
+
};
|
|
25
|
+
}): Record<string, unknown> | undefined;
|
|
26
|
+
export declare function authoringModelConfigCases(preActionModel: string, skillModel: string, postActionModel: string): {
|
|
27
|
+
version: "graph-model-config/v1";
|
|
28
|
+
cases: {
|
|
29
|
+
id: string;
|
|
30
|
+
modelConfig: {
|
|
31
|
+
preActionModel: {
|
|
32
|
+
kind: "profileChoice";
|
|
33
|
+
key: string;
|
|
34
|
+
};
|
|
35
|
+
skillModel: {
|
|
36
|
+
kind: "profileChoice";
|
|
37
|
+
key: string;
|
|
38
|
+
};
|
|
39
|
+
postActionModel: {
|
|
40
|
+
kind: "profileChoice";
|
|
41
|
+
key: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared helpers for model alias contract tests.
|
|
3
|
+
*/
|
|
4
|
+
export const EMPTY_GRAPH_RESPONSE = { shape: {} };
|
|
5
|
+
export function modelConfigCases(preActionModel, skillModel, postActionModel) {
|
|
6
|
+
return { cases: [{ modelConfig: { preActionModel, skillModel, postActionModel } }] };
|
|
7
|
+
}
|
|
8
|
+
export function compiledModelWire(preActionModel, skillModel, postActionModel) {
|
|
9
|
+
const aliasToChoice = {
|
|
10
|
+
cheap: 'cheap/default',
|
|
11
|
+
balanced: 'vol/default',
|
|
12
|
+
deep: 'deep/openai_deep',
|
|
13
|
+
pro: 'pro/default',
|
|
14
|
+
};
|
|
15
|
+
const wire = (alias) => (alias.includes('/') ? alias : aliasToChoice[alias] ?? `${alias}/default`);
|
|
16
|
+
return {
|
|
17
|
+
preActionModel: wire(preActionModel),
|
|
18
|
+
skillModel: wire(skillModel),
|
|
19
|
+
postActionModel: wire(postActionModel),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export function mainSkillUnit(req) {
|
|
23
|
+
return req.nodePlan?.executionUnits?.find((u) => u.unitKind === 'mainSkill');
|
|
24
|
+
}
|
|
25
|
+
export function authoringModelConfigCases(preActionModel, skillModel, postActionModel) {
|
|
26
|
+
const wire = compiledModelWire(preActionModel, skillModel, postActionModel);
|
|
27
|
+
const choice = (key) => ({ kind: 'profileChoice', key });
|
|
28
|
+
return {
|
|
29
|
+
version: 'graph-model-config/v1',
|
|
30
|
+
cases: [
|
|
31
|
+
{
|
|
32
|
+
id: 'default',
|
|
33
|
+
modelConfig: {
|
|
34
|
+
preActionModel: choice(wire.preActionModel),
|
|
35
|
+
skillModel: choice(wire.skillModel),
|
|
36
|
+
postActionModel: choice(wire.postActionModel),
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
};
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exellix/graph-engine",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Graph executor SDK",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"prebuild": "node scripts/clean-dist.mjs",
|
|
27
27
|
"build": "tsc",
|
|
28
|
-
"test": "npm run build && npm run check:no-legacy && tsx --test --test-force-exit tests/model-alias-
|
|
29
|
-
"test:full": "npm run build && npm run check:no-legacy && tsx --test --test-force-exit 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-
|
|
28
|
+
"test": "npm run build && npm run check:no-legacy && tsx --test --test-force-exit --test-timeout=60000 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=60000 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/step-retry-llm-call.test.ts",
|
|
30
30
|
"test:live": "npm run run:pre-synthesis",
|
|
31
31
|
"test:subnets-graph-fixture": "npm run build && node --test tests/subnets-graph.fixture.test.mjs",
|
|
32
32
|
"test:subnets-graph-live": "npm run build && node --env-file=.env --test tests/subnets-graph.live.test.mjs",
|
|
@@ -52,20 +52,20 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@exellix/ai-tasks": "^9.0.
|
|
55
|
+
"@exellix/ai-tasks": "^9.0.1",
|
|
56
56
|
"@x12i/activix": "8.5.0",
|
|
57
57
|
"@x12i/catalox": "5.1.3",
|
|
58
58
|
"@x12i/env": "4.0.1",
|
|
59
59
|
"@x12i/funcx": "4.4.4",
|
|
60
60
|
"@x12i/graphenix": "2.5.0",
|
|
61
|
-
"@x12i/graphenix-authoring-format": "^1.1
|
|
61
|
+
"@x12i/graphenix-authoring-format": "^1.2.1",
|
|
62
62
|
"@x12i/graphenix-executable-contracts": "^1.1.0",
|
|
63
|
-
"@x12i/graphenix-executable-format": "^2.1.
|
|
64
|
-
"@x12i/graphenix-execute-envelope": "^1.1.
|
|
63
|
+
"@x12i/graphenix-executable-format": "^2.1.4",
|
|
64
|
+
"@x12i/graphenix-execute-envelope": "^1.1.1",
|
|
65
65
|
"@x12i/graphenix-format": "2.0.0",
|
|
66
|
-
"@x12i/graphenix-plan-compiler": "^1.1.
|
|
67
|
-
"@x12i/graphenix-plan-format": "^1.1.
|
|
68
|
-
"@x12i/graphenix-trace-format": "^1.
|
|
66
|
+
"@x12i/graphenix-plan-compiler": "^1.1.1",
|
|
67
|
+
"@x12i/graphenix-plan-format": "^1.1.1",
|
|
68
|
+
"@x12i/graphenix-trace-format": "^1.1.1",
|
|
69
69
|
"@x12i/logxer": "^4.6.0",
|
|
70
70
|
"@x12i/memorix-descriptors": "1.6.0",
|
|
71
71
|
"@x12i/memorix-retrieval": "1.11.2",
|