@exellix/ai-tasks 10.1.1 → 10.1.2
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 +11 -0
- package/dist/node-execution/traceLifecycle.d.ts +13 -8
- package/dist/node-execution/traceLifecycle.d.ts.map +1 -1
- package/dist/node-execution/traceLifecycle.js +100 -19
- package/dist/node-execution/traceLifecycle.js.map +1 -1
- package/dist/node-execution/traceLifecycleLocal.js +2 -2
- package/documenations/node-execution-graphenix.md +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,17 @@ All notable changes to `@exellix/ai-tasks` are documented here.
|
|
|
4
4
|
|
|
5
5
|
The published **npm version** always matches **`version`** in [`package.json`](package.json). If this file skips a semver, treat [`BREAKING-CHANGES.md`](BREAKING-CHANGES.md) and [`RUNTASK_REQUEST.md`](RUNTASK_REQUEST.md) as the source of truth for cross-version upgrades.
|
|
6
6
|
|
|
7
|
+
## [10.1.2] - 2026-06-24
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **AT-CR-001 (complete):** GTF-FR-001 lifecycle delegated to `@x12i/graphenix-trace-format@^2.12.0` — `unitExecutions`, `modelInvocations`, and `nodeExecutions` indexes stay in sync during node-plan execution when `RunTaskRequest.executionTrace` is present.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **Graphenix trace-format ^2.12.0:** GTF-FR-001 lifecycle (`markUnit*`, `recordModelInvocation*`, `appendUnitLifecycleEvent`) now delegated to `@x12i/graphenix-trace-format` via ai-tasks shims; other `@x12i/graphenix-*` packages remain at latest **^2.11.0**.
|
|
16
|
+
- Node rollup and `fallback.applied` events still use local helpers until upstream exports them.
|
|
17
|
+
|
|
7
18
|
## [10.1.1] - 2026-06-24
|
|
8
19
|
|
|
9
20
|
### Changed
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GTF-FR-001 lifecycle helpers — delegate to @x12i/graphenix-trace-format (≥2.12.0) with
|
|
3
|
+
* ai-tasks argument shims; fall back to local implementation on older trace-format.
|
|
4
|
+
*/
|
|
5
|
+
import type { ExecutionUnitPlanV2, GraphExecutionTraceV2 } from "@x12i/graphenix-executable-contracts";
|
|
1
6
|
import * as local from "./traceLifecycleLocal.js";
|
|
2
|
-
export
|
|
3
|
-
export declare
|
|
4
|
-
export declare
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
7
|
-
export declare
|
|
7
|
+
export type { UnitCompletionOutcome, UnitFailureOutcome, ModelInvocationStartArgs, ModelInvocationOutcome, } from "./traceLifecycleLocal.js";
|
|
8
|
+
export declare function markUnitStarted(trace: GraphExecutionTraceV2, unit: ExecutionUnitPlanV2, at?: string): void;
|
|
9
|
+
export declare function markUnitCompleted(trace: GraphExecutionTraceV2, unitId: string, outcome: local.UnitCompletionOutcome, unit?: ExecutionUnitPlanV2): void;
|
|
10
|
+
export declare function markUnitFailed(trace: GraphExecutionTraceV2, unitId: string, error: unknown, outcome?: local.UnitFailureOutcome, unit?: ExecutionUnitPlanV2): void;
|
|
11
|
+
export declare function recordModelInvocationStarted(trace: GraphExecutionTraceV2, args: local.ModelInvocationStartArgs): void;
|
|
12
|
+
export declare function recordModelInvocationCompleted(trace: GraphExecutionTraceV2, invocationId: string, outcome: local.ModelInvocationOutcome): void;
|
|
13
|
+
export declare function recordModelInvocationFailed(trace: GraphExecutionTraceV2, invocationId: string, error: unknown, outcome?: local.ModelInvocationOutcome): void;
|
|
8
14
|
export declare const appendFallbackAppliedEvent: typeof local.appendFallbackAppliedEvent;
|
|
9
15
|
export declare const rollupNodeExecution: typeof local.rollupNodeExecution;
|
|
10
|
-
|
|
11
|
-
/** True when lifecycle helpers are re-exported from graphenix-trace-format (not local fallback). */
|
|
16
|
+
/** True when GTF-FR-001 lifecycle helpers are exported from graphenix-trace-format. */
|
|
12
17
|
export declare function usesUpstreamTraceLifecycle(): boolean;
|
|
13
18
|
//# sourceMappingURL=traceLifecycle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traceLifecycle.d.ts","sourceRoot":"","sources":["../../src/node-execution/traceLifecycle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"traceLifecycle.d.ts","sourceRoot":"","sources":["../../src/node-execution/traceLifecycle.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAEvG,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAuBlC,wBAAgB,eAAe,CAC7B,KAAK,EAAE,qBAAqB,EAC5B,IAAI,EAAE,mBAAmB,EACzB,EAAE,CAAC,EAAE,MAAM,GACV,IAAI,CAUN;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,KAAK,CAAC,qBAAqB,EACpC,IAAI,CAAC,EAAE,mBAAmB,GACzB,IAAI,CAUN;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE,KAAK,CAAC,kBAAkB,EAClC,IAAI,CAAC,EAAE,mBAAmB,GACzB,IAAI,CAcN;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,qBAAqB,EAC5B,IAAI,EAAE,KAAK,CAAC,wBAAwB,GACnC,IAAI,CAgBN;AAED,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,qBAAqB,EAC5B,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,KAAK,CAAC,sBAAsB,GACpC,IAAI,CAgBN;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,qBAAqB,EAC5B,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE,KAAK,CAAC,sBAAsB,GACrC,IAAI,CAUN;AAED,eAAO,MAAM,0BAA0B,yCAAmC,CAAC;AAC3E,eAAO,MAAM,mBAAmB,kCAA4B,CAAC;AAE7D,uFAAuF;AACvF,wBAAgB,0BAA0B,IAAI,OAAO,CAEpD"}
|
|
@@ -1,24 +1,105 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GTF-FR-001 lifecycle helpers — prefer @x12i/graphenix-trace-format when exported (≥2.11.x),
|
|
3
|
-
* fall back to local implementation until upstream ships markUnitStarted / recordModelInvocation*.
|
|
4
|
-
*/
|
|
5
1
|
import * as GTF from "@x12i/graphenix-trace-format";
|
|
6
2
|
import * as local from "./traceLifecycleLocal.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
3
|
+
const hasUpstream = typeof GTF.markUnitStarted === "function" &&
|
|
4
|
+
typeof GTF.recordModelInvocationStarted === "function";
|
|
5
|
+
function normalizeError(error) {
|
|
6
|
+
if (error instanceof Error) {
|
|
7
|
+
return { message: error.message, code: "UNIT_FAILED" };
|
|
8
|
+
}
|
|
9
|
+
if (typeof error === "string") {
|
|
10
|
+
return { message: error, code: "UNIT_FAILED" };
|
|
11
|
+
}
|
|
12
|
+
if (error && typeof error === "object" && "message" in error) {
|
|
13
|
+
const record = error;
|
|
14
|
+
return {
|
|
15
|
+
message: String(record.message ?? "Unit failed"),
|
|
16
|
+
code: typeof record.code === "string" ? record.code : "UNIT_FAILED",
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return { message: String(error), code: "UNIT_FAILED" };
|
|
20
|
+
}
|
|
21
|
+
export function markUnitStarted(trace, unit, at) {
|
|
22
|
+
if (hasUpstream && typeof GTF.appendUnitLifecycleEvent === "function") {
|
|
23
|
+
GTF.appendUnitLifecycleEvent(trace, "unit.started", unit, { at, ts: at });
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (hasUpstream) {
|
|
27
|
+
GTF.markUnitStarted(trace, unit, at);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
local.markUnitStarted(trace, unit, at);
|
|
31
|
+
}
|
|
32
|
+
export function markUnitCompleted(trace, unitId, outcome, unit) {
|
|
33
|
+
if (hasUpstream && typeof GTF.appendUnitLifecycleEvent === "function" && unit) {
|
|
34
|
+
GTF.appendUnitLifecycleEvent(trace, "unit.completed", unit, outcome);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (hasUpstream) {
|
|
38
|
+
GTF.markUnitCompleted(trace, unitId, outcome);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
local.markUnitCompleted(trace, unitId, outcome, unit);
|
|
42
|
+
}
|
|
43
|
+
export function markUnitFailed(trace, unitId, error, outcome, unit) {
|
|
44
|
+
const normalized = normalizeError(error);
|
|
45
|
+
if (hasUpstream && typeof GTF.appendUnitLifecycleEvent === "function" && unit) {
|
|
46
|
+
GTF.appendUnitLifecycleEvent(trace, "unit.failed", unit, {
|
|
47
|
+
...outcome,
|
|
48
|
+
error: normalized,
|
|
49
|
+
});
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (hasUpstream) {
|
|
53
|
+
GTF.markUnitFailed(trace, unitId, normalized, outcome);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
local.markUnitFailed(trace, unitId, error, outcome, unit);
|
|
57
|
+
}
|
|
58
|
+
export function recordModelInvocationStarted(trace, args) {
|
|
59
|
+
if (hasUpstream) {
|
|
60
|
+
GTF.recordModelInvocationStarted(trace, {
|
|
61
|
+
invocationId: args.invocationId,
|
|
62
|
+
unitId: args.unit.unitId,
|
|
63
|
+
nodeId: args.nodeId,
|
|
64
|
+
modelSlot: args.unit.modelSlot,
|
|
65
|
+
plannedModelSelection: args.unit.modelSelection,
|
|
66
|
+
}, args.startedAt);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
local.recordModelInvocationStarted(trace, args);
|
|
70
|
+
}
|
|
71
|
+
export function recordModelInvocationCompleted(trace, invocationId, outcome) {
|
|
72
|
+
if (hasUpstream) {
|
|
73
|
+
GTF.recordModelInvocationCompleted(trace, invocationId, {
|
|
74
|
+
durationMs: outcome.durationMs,
|
|
75
|
+
usage: outcome.usage,
|
|
76
|
+
cost: outcome.cost ? { costUsd: outcome.cost.costUsd } : undefined,
|
|
77
|
+
resolvedModel: outcome.resolvedInvocation?.modelId,
|
|
78
|
+
resolvedInvocation: outcome.resolvedInvocation,
|
|
79
|
+
previews: {
|
|
80
|
+
...(outcome.promptPreview !== undefined ? { input: outcome.promptPreview } : {}),
|
|
81
|
+
...(outcome.completionPreview !== undefined ? { output: outcome.completionPreview } : {}),
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
local.recordModelInvocationCompleted(trace, invocationId, outcome);
|
|
87
|
+
}
|
|
88
|
+
export function recordModelInvocationFailed(trace, invocationId, error, outcome) {
|
|
89
|
+
if (hasUpstream) {
|
|
90
|
+
const normalized = normalizeError(error);
|
|
91
|
+
GTF.recordModelInvocationFailed(trace, invocationId, {
|
|
92
|
+
message: outcome?.errorMessage ?? normalized.message,
|
|
93
|
+
code: normalized.code ?? "MODEL_INVOCATION_FAILED",
|
|
94
|
+
});
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
local.recordModelInvocationFailed(trace, invocationId, error, outcome);
|
|
98
|
+
}
|
|
99
|
+
export const appendFallbackAppliedEvent = local.appendFallbackAppliedEvent;
|
|
100
|
+
export const rollupNodeExecution = local.rollupNodeExecution;
|
|
101
|
+
/** True when GTF-FR-001 lifecycle helpers are exported from graphenix-trace-format. */
|
|
21
102
|
export function usesUpstreamTraceLifecycle() {
|
|
22
|
-
return
|
|
103
|
+
return hasUpstream;
|
|
23
104
|
}
|
|
24
105
|
//# sourceMappingURL=traceLifecycle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traceLifecycle.js","sourceRoot":"","sources":["../../src/node-execution/traceLifecycle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"traceLifecycle.js","sourceRoot":"","sources":["../../src/node-execution/traceLifecycle.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,GAAG,MAAM,8BAA8B,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AASlD,MAAM,WAAW,GACf,OAAO,GAAG,CAAC,eAAe,KAAK,UAAU;IACzC,OAAO,GAAG,CAAC,4BAA4B,KAAK,UAAU,CAAC;AAEzD,SAAS,cAAc,CAAC,KAAc;IACpC,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;IACzD,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;IACjD,CAAC;IACD,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,SAAS,IAAI,KAAK,EAAE,CAAC;QAC7D,MAAM,MAAM,GAAG,KAA8C,CAAC;QAC9D,OAAO;YACL,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,IAAI,aAAa,CAAC;YAChD,IAAI,EAAE,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa;SACpE,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,KAAK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WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Local
|
|
3
|
-
*
|
|
2
|
+
* Local trace lifecycle helpers for APIs not yet exported by @x12i/graphenix-trace-format:
|
|
3
|
+
* `rollupNodeExecution`, `appendFallbackAppliedEvent`, and full local fallback on older trace-format.
|
|
4
4
|
*/
|
|
5
5
|
import { randomUUID } from "crypto";
|
|
6
6
|
import { appendTraceEvent, deriveNodeStatusFromUnits } from "@x12i/graphenix-trace-format";
|
|
@@ -32,7 +32,7 @@ Plan `mapping` units are orchestrator-owned. Graph-engine applies `nodePlan.exec
|
|
|
32
32
|
| Package | Role |
|
|
33
33
|
| ------- | ---- |
|
|
34
34
|
| `@x12i/graphenix-plan-format` ^2.11.0 | `validateNodeExecutionPlan` |
|
|
35
|
-
| `@x12i/graphenix-trace-format` ^2.
|
|
35
|
+
| `@x12i/graphenix-trace-format` ^2.12.0 | GTF-FR-001 lifecycle (`markUnit*`, `recordModelInvocation*`); node rollup/fallback events via ai-tasks adapter |
|
|
36
36
|
| `@x12i/graphenix-executable-contracts` ^2.11.0 | Types |
|
|
37
37
|
|
|
38
38
|
## Test helper
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exellix/ai-tasks",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.2",
|
|
4
4
|
"description": "Task orchestration for the Exellix stack: runTask() with local handlers or LLM-backed execution, task-scoped memory/context enrichment, and executor dispatch via @exellix/ai-skills. ERC-compliant.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@x12i/graphenix-core": "^2.11.0",
|
|
74
74
|
"@x12i/graphenix-executable-contracts": "^2.11.0",
|
|
75
75
|
"@x12i/graphenix-plan-format": "^2.11.0",
|
|
76
|
-
"@x12i/graphenix-trace-format": "^2.
|
|
76
|
+
"@x12i/graphenix-trace-format": "^2.12.0",
|
|
77
77
|
"@x12i/logxer": "^4.6.0",
|
|
78
78
|
"@x12i/optimixer": "^3.5.2",
|
|
79
79
|
"@x12i/rendrix": "^4.3.0",
|