@exellix/graph-engine 6.0.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/.env.example +3 -0
- package/CHANGELOG.md +208 -0
- package/README.md +827 -0
- package/dist/src/errors/ExellixGraphError.d.ts +38 -0
- package/dist/src/errors/ExellixGraphError.js +21 -0
- package/dist/src/errors/exellixGraphErrorCodes.d.ts +31 -0
- package/dist/src/errors/exellixGraphErrorCodes.js +32 -0
- package/dist/src/index.d.ts +100 -0
- package/dist/src/index.js +75 -0
- package/dist/src/inspection/contractInspection.d.ts +21 -0
- package/dist/src/inspection/contractInspection.js +526 -0
- package/dist/src/inspection/contractTypes.d.ts +137 -0
- package/dist/src/inspection/contractTypes.js +1 -0
- package/dist/src/inspection/controlInspection.d.ts +22 -0
- package/dist/src/inspection/controlInspection.js +130 -0
- package/dist/src/inspection/graphInspection.d.ts +51 -0
- package/dist/src/inspection/graphInspection.js +467 -0
- package/dist/src/inspection/index.d.ts +21 -0
- package/dist/src/inspection/index.js +17 -0
- package/dist/src/inspection/nodeInspection.d.ts +42 -0
- package/dist/src/inspection/nodeInspection.js +474 -0
- package/dist/src/inspection/types.d.ts +321 -0
- package/dist/src/inspection/types.js +14 -0
- package/dist/src/inspection/validateAiTasksNodeExtensions.d.ts +12 -0
- package/dist/src/inspection/validateAiTasksNodeExtensions.js +119 -0
- package/dist/src/inspection/validateCatalogPlanning.d.ts +21 -0
- package/dist/src/inspection/validateCatalogPlanning.js +187 -0
- package/dist/src/integrations/ActivityTrackerIntegration.d.ts +86 -0
- package/dist/src/integrations/ActivityTrackerIntegration.js +134 -0
- package/dist/src/integrations/ActivixGraphRunIntegration.d.ts +34 -0
- package/dist/src/integrations/ActivixGraphRunIntegration.js +338 -0
- package/dist/src/integrations/ActivixNodeActivityIntegration.d.ts +33 -0
- package/dist/src/integrations/ActivixNodeActivityIntegration.js +220 -0
- package/dist/src/integrations/cataloxGraphCatalog.d.ts +21 -0
- package/dist/src/integrations/cataloxGraphCatalog.js +30 -0
- package/dist/src/integrations/createActivixExellixIntegration.d.ts +14 -0
- package/dist/src/integrations/createActivixExellixIntegration.js +16 -0
- package/dist/src/integrations/createActivixFromEnv.d.ts +31 -0
- package/dist/src/integrations/createActivixFromEnv.js +53 -0
- package/dist/src/loaders/FileGraphLoader.d.ts +23 -0
- package/dist/src/loaders/FileGraphLoader.js +31 -0
- package/dist/src/playground/PlaygroundReporter.d.ts +40 -0
- package/dist/src/playground/PlaygroundReporter.js +480 -0
- package/dist/src/playground/index.d.ts +1 -0
- package/dist/src/playground/index.js +1 -0
- package/dist/src/runtime/ExellixGraphRuntime.d.ts +263 -0
- package/dist/src/runtime/ExellixGraphRuntime.js +1716 -0
- package/dist/src/runtime/GraphEngine.d.ts +33 -0
- package/dist/src/runtime/GraphEngine.js +4 -0
- package/dist/src/runtime/aiTasksObservability.d.ts +6 -0
- package/dist/src/runtime/aiTasksObservability.js +37 -0
- package/dist/src/runtime/aiTasksStrategyPhases.d.ts +46 -0
- package/dist/src/runtime/aiTasksStrategyPhases.js +93 -0
- package/dist/src/runtime/applyAiTaskProfileWebScopingToNarrix.d.ts +17 -0
- package/dist/src/runtime/applyAiTaskProfileWebScopingToNarrix.js +46 -0
- package/dist/src/runtime/buildAiTasksRunTaskRequest.d.ts +67 -0
- package/dist/src/runtime/buildAiTasksRunTaskRequest.js +164 -0
- package/dist/src/runtime/buildRunLog.d.ts +27 -0
- package/dist/src/runtime/buildRunLog.js +234 -0
- package/dist/src/runtime/buildRunTaskTaskConfigurationForward.d.ts +9 -0
- package/dist/src/runtime/buildRunTaskTaskConfigurationForward.js +80 -0
- package/dist/src/runtime/buildTaskNodeJobContext.d.ts +11 -0
- package/dist/src/runtime/buildTaskNodeJobContext.js +30 -0
- package/dist/src/runtime/canonicalModelUsed.d.ts +6 -0
- package/dist/src/runtime/canonicalModelUsed.js +36 -0
- package/dist/src/runtime/contextualScope.d.ts +7 -0
- package/dist/src/runtime/contextualScope.js +121 -0
- package/dist/src/runtime/dataFiltersEvaluation.d.ts +60 -0
- package/dist/src/runtime/dataFiltersEvaluation.js +169 -0
- package/dist/src/runtime/deepMerge.d.ts +5 -0
- package/dist/src/runtime/deepMerge.js +22 -0
- package/dist/src/runtime/events.d.ts +92 -0
- package/dist/src/runtime/events.js +122 -0
- package/dist/src/runtime/executionMatrixHost.d.ts +98 -0
- package/dist/src/runtime/executionMatrixHost.js +134 -0
- package/dist/src/runtime/executionVariableBuckets.d.ts +67 -0
- package/dist/src/runtime/executionVariableBuckets.js +96 -0
- package/dist/src/runtime/finalizers/errors.d.ts +9 -0
- package/dist/src/runtime/finalizers/errors.js +10 -0
- package/dist/src/runtime/finalizers/executeFinalizer.d.ts +40 -0
- package/dist/src/runtime/finalizers/executeFinalizer.js +471 -0
- package/dist/src/runtime/finalizers/schema.d.ts +18 -0
- package/dist/src/runtime/finalizers/schema.js +63 -0
- package/dist/src/runtime/finalizers/validateFinalizer.d.ts +16 -0
- package/dist/src/runtime/finalizers/validateFinalizer.js +534 -0
- package/dist/src/runtime/graphDocumentFingerprint.d.ts +8 -0
- package/dist/src/runtime/graphDocumentFingerprint.js +21 -0
- package/dist/src/runtime/graphEngineMemoryPaths.d.ts +12 -0
- package/dist/src/runtime/graphEngineMemoryPaths.js +55 -0
- package/dist/src/runtime/graphResponseMapping.d.ts +23 -0
- package/dist/src/runtime/graphResponseMapping.js +156 -0
- package/dist/src/runtime/graphResponseMigration.d.ts +7 -0
- package/dist/src/runtime/graphResponseMigration.js +44 -0
- package/dist/src/runtime/graphRunExecutionSeed.d.ts +29 -0
- package/dist/src/runtime/graphRunExecutionSeed.js +61 -0
- package/dist/src/runtime/graphRunIdentity.d.ts +7 -0
- package/dist/src/runtime/graphRunIdentity.js +18 -0
- package/dist/src/runtime/localSkills/deterministicRule.d.ts +137 -0
- package/dist/src/runtime/localSkills/deterministicRule.js +196 -0
- package/dist/src/runtime/localSkills/index.d.ts +12 -0
- package/dist/src/runtime/localSkills/index.js +14 -0
- package/dist/src/runtime/localSkills/memorixItemToScopedOutput.d.ts +7 -0
- package/dist/src/runtime/localSkills/memorixItemToScopedOutput.js +104 -0
- package/dist/src/runtime/localSkills/memorixRuntime.d.ts +9 -0
- package/dist/src/runtime/localSkills/memorixRuntime.js +70 -0
- package/dist/src/runtime/localSkills/memorixScopedConfig.d.ts +16 -0
- package/dist/src/runtime/localSkills/memorixScopedConfig.js +18 -0
- package/dist/src/runtime/localSkills/scopedAnswerAssembler.d.ts +23 -0
- package/dist/src/runtime/localSkills/scopedAnswerAssembler.js +35 -0
- package/dist/src/runtime/localSkills/scopedAnswerFields.d.ts +12 -0
- package/dist/src/runtime/localSkills/scopedAnswerFields.js +66 -0
- package/dist/src/runtime/localSkills/scopedAnswerWriter.d.ts +32 -0
- package/dist/src/runtime/localSkills/scopedAnswerWriter.js +156 -0
- package/dist/src/runtime/localSkills/scopedDataReader.d.ts +47 -0
- package/dist/src/runtime/localSkills/scopedDataReader.js +89 -0
- package/dist/src/runtime/localSkills/utils.d.ts +12 -0
- package/dist/src/runtime/localSkills/utils.js +39 -0
- package/dist/src/runtime/materializeStructuredRunTaskInput.d.ts +9 -0
- package/dist/src/runtime/materializeStructuredRunTaskInput.js +34 -0
- package/dist/src/runtime/memory.d.ts +51 -0
- package/dist/src/runtime/memory.js +250 -0
- package/dist/src/runtime/mergeExellixGraphRuntimeInvocation.d.ts +18 -0
- package/dist/src/runtime/mergeExellixGraphRuntimeInvocation.js +32 -0
- package/dist/src/runtime/modelConfigSelection.d.ts +7 -0
- package/dist/src/runtime/modelConfigSelection.js +37 -0
- package/dist/src/runtime/narrixIngestEnv.d.ts +9 -0
- package/dist/src/runtime/narrixIngestEnv.js +18 -0
- package/dist/src/runtime/pathExpr.d.ts +36 -0
- package/dist/src/runtime/pathExpr.js +131 -0
- package/dist/src/runtime/predicates.d.ts +14 -0
- package/dist/src/runtime/predicates.js +86 -0
- package/dist/src/runtime/readTaskNodeInputsConfig.d.ts +23 -0
- package/dist/src/runtime/readTaskNodeInputsConfig.js +27 -0
- package/dist/src/runtime/resolveExecutionPipelineForTaskNode.d.ts +11 -0
- package/dist/src/runtime/resolveExecutionPipelineForTaskNode.js +93 -0
- package/dist/src/runtime/resolveGraphEngineMemoryPaths.d.ts +63 -0
- package/dist/src/runtime/resolveGraphEngineMemoryPaths.js +213 -0
- package/dist/src/runtime/resolveModelConfigForNode.d.ts +20 -0
- package/dist/src/runtime/resolveModelConfigForNode.js +69 -0
- package/dist/src/runtime/resolveNarrixForTaskNode.d.ts +14 -0
- package/dist/src/runtime/resolveNarrixForTaskNode.js +19 -0
- package/dist/src/runtime/resolveTaskKey.d.ts +11 -0
- package/dist/src/runtime/resolveTaskKey.js +28 -0
- package/dist/src/runtime/resolveTaskNodeInputs.d.ts +25 -0
- package/dist/src/runtime/resolveTaskNodeInputs.js +140 -0
- package/dist/src/runtime/runTaskAugments.d.ts +17 -0
- package/dist/src/runtime/runTaskAugments.js +37 -0
- package/dist/src/runtime/runTaskResponse.d.ts +4 -0
- package/dist/src/runtime/runTaskResponse.js +13 -0
- package/dist/src/runtime/runtimeObjects.d.ts +85 -0
- package/dist/src/runtime/runtimeObjects.js +50 -0
- package/dist/src/runtime/smartInputPaths.d.ts +13 -0
- package/dist/src/runtime/smartInputPaths.js +38 -0
- package/dist/src/runtime/stepRetry.d.ts +21 -0
- package/dist/src/runtime/stepRetry.js +238 -0
- package/dist/src/runtime/synthesizedContextPipeline.d.ts +12 -0
- package/dist/src/runtime/synthesizedContextPipeline.js +28 -0
- package/dist/src/runtime/taskNodeConditionsEvaluation.d.ts +27 -0
- package/dist/src/runtime/taskNodeConditionsEvaluation.js +140 -0
- package/dist/src/runtime/taskNodeMainReadiness.d.ts +45 -0
- package/dist/src/runtime/taskNodeMainReadiness.js +164 -0
- package/dist/src/runtime/taskNodeRunTaskPreflight.d.ts +89 -0
- package/dist/src/runtime/taskNodeRunTaskPreflight.js +204 -0
- package/dist/src/runtime/validateCanonicalGraphDocument.d.ts +25 -0
- package/dist/src/runtime/validateCanonicalGraphDocument.js +567 -0
- package/dist/src/runtime/variables.d.ts +2 -0
- package/dist/src/runtime/variables.js +1 -0
- package/dist/src/runtime/withTimeout.d.ts +5 -0
- package/dist/src/runtime/withTimeout.js +20 -0
- package/dist/src/types/aiTaskProfile.d.ts +41 -0
- package/dist/src/types/aiTaskProfile.js +6 -0
- package/dist/src/types/aiTasksDerivedTypes.d.ts +5 -0
- package/dist/src/types/aiTasksDerivedTypes.js +1 -0
- package/dist/src/types/events.d.ts +23 -0
- package/dist/src/types/events.js +1 -0
- package/dist/src/types/job.d.ts +9 -0
- package/dist/src/types/job.js +1 -0
- package/dist/src/types/narrix.d.ts +60 -0
- package/dist/src/types/narrix.js +1 -0
- package/dist/src/types/options.d.ts +122 -0
- package/dist/src/types/options.js +1 -0
- package/dist/src/types/refs.d.ts +747 -0
- package/dist/src/types/refs.js +12 -0
- package/dist/src/types/results.d.ts +103 -0
- package/dist/src/types/results.js +1 -0
- package/dist/src/types/runLog.d.ts +72 -0
- package/dist/src/types/runLog.js +18 -0
- package/dist/src/types/taskNodeConfiguration.d.ts +95 -0
- package/dist/src/types/taskNodeConfiguration.js +3 -0
- package/dist/src/util/packageVersion.d.ts +2 -0
- package/dist/src/util/packageVersion.js +12 -0
- package/dist/testkit/RealTasksClient.d.ts +16 -0
- package/dist/testkit/RealTasksClient.js +143 -0
- package/dist/testkit/depGraphEngineFactory.d.ts +6 -0
- package/dist/testkit/depGraphEngineFactory.js +54 -0
- package/dist/testkit/exellixRuntimeObjects.d.ts +7 -0
- package/dist/testkit/exellixRuntimeObjects.js +25 -0
- package/dist/testkit/inMemoryGraphLoader.d.ts +6 -0
- package/dist/testkit/inMemoryGraphLoader.js +12 -0
- package/dist/testkit/index.d.ts +4 -0
- package/dist/testkit/index.js +4 -0
- package/package.json +70 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ExellixGraphErrorCode } from './exellixGraphErrorCodes.js';
|
|
2
|
+
/**
|
|
3
|
+
* Structured error for exellix-graph operations
|
|
4
|
+
*/
|
|
5
|
+
export declare class ExellixGraphError extends Error {
|
|
6
|
+
readonly code: ExellixGraphErrorCode;
|
|
7
|
+
readonly context?: {
|
|
8
|
+
jobId?: string;
|
|
9
|
+
graphId?: string;
|
|
10
|
+
nodeId?: string;
|
|
11
|
+
nodeType?: string;
|
|
12
|
+
skillKey?: string;
|
|
13
|
+
goalNodeId?: string;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
} | undefined;
|
|
16
|
+
constructor(code: ExellixGraphErrorCode, message: string, context?: {
|
|
17
|
+
jobId?: string;
|
|
18
|
+
graphId?: string;
|
|
19
|
+
nodeId?: string;
|
|
20
|
+
nodeType?: string;
|
|
21
|
+
skillKey?: string;
|
|
22
|
+
goalNodeId?: string;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
} | undefined);
|
|
25
|
+
toJSON(): {
|
|
26
|
+
code: ExellixGraphErrorCode;
|
|
27
|
+
message: string;
|
|
28
|
+
context: {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
jobId?: string;
|
|
31
|
+
graphId?: string;
|
|
32
|
+
nodeId?: string;
|
|
33
|
+
nodeType?: string;
|
|
34
|
+
skillKey?: string;
|
|
35
|
+
goalNodeId?: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Structured error for exellix-graph operations
|
|
3
|
+
*/
|
|
4
|
+
export class ExellixGraphError extends Error {
|
|
5
|
+
code;
|
|
6
|
+
context;
|
|
7
|
+
constructor(code, message, context) {
|
|
8
|
+
super(message);
|
|
9
|
+
this.code = code;
|
|
10
|
+
this.context = context;
|
|
11
|
+
this.name = 'ExellixGraphError';
|
|
12
|
+
Object.setPrototypeOf(this, ExellixGraphError.prototype);
|
|
13
|
+
}
|
|
14
|
+
toJSON() {
|
|
15
|
+
return {
|
|
16
|
+
code: this.code,
|
|
17
|
+
message: this.message,
|
|
18
|
+
context: this.context,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error codes for ExellixGraphError
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ExellixGraphErrorCode {
|
|
5
|
+
/** Caller must supply `jobId`, or `job.jobId`, or `job.id` for run correlation. */
|
|
6
|
+
JOB_ID_REQUIRED = "JOB_ID_REQUIRED",
|
|
7
|
+
NODE_SKILLKEY_MISSING = "NODE_SKILLKEY_MISSING",
|
|
8
|
+
BACKWARD_GOAL_REQUIRED = "BACKWARD_GOAL_REQUIRED",
|
|
9
|
+
GRAPH_LOAD_FAILED = "GRAPH_LOAD_FAILED",
|
|
10
|
+
GRAPH_EXECUTION_FAILED = "GRAPH_EXECUTION_FAILED",
|
|
11
|
+
NODE_EXECUTION_FAILED = "NODE_EXECUTION_FAILED",
|
|
12
|
+
TASK_NOT_FOUND = "TASK_NOT_FOUND",
|
|
13
|
+
INVALID_GRAPH = "INVALID_GRAPH",
|
|
14
|
+
/** Graph JSON has forbidden top-level keys; document metadata must be under `metadata` only. */
|
|
15
|
+
NON_CANONICAL_GRAPH_DOCUMENT = "NON_CANONICAL_GRAPH_DOCUMENT",
|
|
16
|
+
/**
|
|
17
|
+
* A task node uses a legacy authoring alias that 5.x rejects at load time.
|
|
18
|
+
* Examples: `node.data.skillKey`, `node.metadata.skillKey`, `node.data.variables`,
|
|
19
|
+
* `node.metadata.variables`, execution keys on `metadata` (belong on `taskConfiguration`),
|
|
20
|
+
* web-scope keys on `taskConfiguration.narrix`.
|
|
21
|
+
*/
|
|
22
|
+
NON_CANONICAL_TASK_NODE = "NON_CANONICAL_TASK_NODE",
|
|
23
|
+
INVALID_NODE = "INVALID_NODE",
|
|
24
|
+
/**
|
|
25
|
+
* `metadata.graphEntry.dataFilters` structured gate (`exellix.dataFilters.v1`) evaluated false
|
|
26
|
+
* against `runtime.executionMemory.input` at graph-run start.
|
|
27
|
+
*/
|
|
28
|
+
GRAPH_ENTRY_DATA_FILTERS_REJECTED = "GRAPH_ENTRY_DATA_FILTERS_REJECTED",
|
|
29
|
+
/** MAIN readiness guard rejected empty execution input or synthesis context before runTask. */
|
|
30
|
+
MAIN_READINESS_FAILED = "MAIN_READINESS_FAILED"
|
|
31
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error codes for ExellixGraphError
|
|
3
|
+
*/
|
|
4
|
+
export var ExellixGraphErrorCode;
|
|
5
|
+
(function (ExellixGraphErrorCode) {
|
|
6
|
+
/** Caller must supply `jobId`, or `job.jobId`, or `job.id` for run correlation. */
|
|
7
|
+
ExellixGraphErrorCode["JOB_ID_REQUIRED"] = "JOB_ID_REQUIRED";
|
|
8
|
+
ExellixGraphErrorCode["NODE_SKILLKEY_MISSING"] = "NODE_SKILLKEY_MISSING";
|
|
9
|
+
ExellixGraphErrorCode["BACKWARD_GOAL_REQUIRED"] = "BACKWARD_GOAL_REQUIRED";
|
|
10
|
+
ExellixGraphErrorCode["GRAPH_LOAD_FAILED"] = "GRAPH_LOAD_FAILED";
|
|
11
|
+
ExellixGraphErrorCode["GRAPH_EXECUTION_FAILED"] = "GRAPH_EXECUTION_FAILED";
|
|
12
|
+
ExellixGraphErrorCode["NODE_EXECUTION_FAILED"] = "NODE_EXECUTION_FAILED";
|
|
13
|
+
ExellixGraphErrorCode["TASK_NOT_FOUND"] = "TASK_NOT_FOUND";
|
|
14
|
+
ExellixGraphErrorCode["INVALID_GRAPH"] = "INVALID_GRAPH";
|
|
15
|
+
/** Graph JSON has forbidden top-level keys; document metadata must be under `metadata` only. */
|
|
16
|
+
ExellixGraphErrorCode["NON_CANONICAL_GRAPH_DOCUMENT"] = "NON_CANONICAL_GRAPH_DOCUMENT";
|
|
17
|
+
/**
|
|
18
|
+
* A task node uses a legacy authoring alias that 5.x rejects at load time.
|
|
19
|
+
* Examples: `node.data.skillKey`, `node.metadata.skillKey`, `node.data.variables`,
|
|
20
|
+
* `node.metadata.variables`, execution keys on `metadata` (belong on `taskConfiguration`),
|
|
21
|
+
* web-scope keys on `taskConfiguration.narrix`.
|
|
22
|
+
*/
|
|
23
|
+
ExellixGraphErrorCode["NON_CANONICAL_TASK_NODE"] = "NON_CANONICAL_TASK_NODE";
|
|
24
|
+
ExellixGraphErrorCode["INVALID_NODE"] = "INVALID_NODE";
|
|
25
|
+
/**
|
|
26
|
+
* `metadata.graphEntry.dataFilters` structured gate (`exellix.dataFilters.v1`) evaluated false
|
|
27
|
+
* against `runtime.executionMemory.input` at graph-run start.
|
|
28
|
+
*/
|
|
29
|
+
ExellixGraphErrorCode["GRAPH_ENTRY_DATA_FILTERS_REJECTED"] = "GRAPH_ENTRY_DATA_FILTERS_REJECTED";
|
|
30
|
+
/** MAIN readiness guard rejected empty execution input or synthesis context before runTask. */
|
|
31
|
+
ExellixGraphErrorCode["MAIN_READINESS_FAILED"] = "MAIN_READINESS_FAILED";
|
|
32
|
+
})(ExellixGraphErrorCode || (ExellixGraphErrorCode = {}));
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @exellix/graph-engine - Graph executor SDK (canonical 5.x)
|
|
3
|
+
*
|
|
4
|
+
* Core responsibilities:
|
|
5
|
+
* 1. Load graph (via injected loader)
|
|
6
|
+
* 2. Plan with graphenix
|
|
7
|
+
* 3. Execute nodes via ai-tasks
|
|
8
|
+
* 4. Commit outputs to graphenix
|
|
9
|
+
* 5. Repeat until done/fail
|
|
10
|
+
*
|
|
11
|
+
* Single canonical entry point: {@link createExellixGraphRuntime} returns
|
|
12
|
+
* `{ executeGraph({ model, runtime }: GraphExecutionRequest) }`. The legacy functional `executeGraph`
|
|
13
|
+
* and the `ExellixGraphClient` class were removed in 5.0.
|
|
14
|
+
*/
|
|
15
|
+
export type { HostExecuteGraphRunOptions, MainReadinessPolicy, ExecutionStepOption, StepRetryPolicy, ActivixNodeActivityExellixConfig, SkillKeyResolutionOptions, RunTaskRequest as ExellixGraphRunTaskRequest, RunTaskResponse as ExellixGraphRunTaskResponse, } from './types/options.js';
|
|
16
|
+
export type { AiTaskProfileMetadata, AiTaskProfileWebScoping, AiTaskProfileInputSynthesis, } from './types/aiTaskProfile.js';
|
|
17
|
+
export type { ExecutionStrategyInvocation, ExecutionStrategyPhase, ExecutionStrategyWrapperKey, SmartInputConfig, TaskStrategyItemData, XynthesizedDestinationScope, XynthesizedMemory, XynthesizedOutputConfig, } from './types/aiTasksDerivedTypes.js';
|
|
18
|
+
export type { Graph, GraphModelObject, GraphAiModelConfig, GraphModelAliasConfig, GraphRuntimeNodeConfig, TaskNodeRuntimeObject, GraphDocumentMetadata, GraphEntryContract, GraphEntryExecutionInputSpec, GraphEntryInputKind, GraphEntryInputSpecBase, GraphEntryInputSpec, GraphEntryValueInputKind, GraphEntryValueInputSpec, GraphResponseDefinition, GraphResponseMissingBehavior, GraphResponseSelector, GraphResponseShape, GraphResponseContract, GraphResponseMapping, GraphResponseMappingMissingBehavior, GraphResponseMappingSelector, GraphResponseMappingTarget, GraphExecutionDefaults, GraphExecutionMode, GraphOutputMode, GraphFlowOutline, GraphCoreObjective, GraphNodesResponses, GraphNode, TaskNode, TaskNodeConditions, TaskNodeConditionWhen, TaskNodeJsonCondition, TaskNodeJsConditionFunction, TaskNodeAiCondition, TaskNodeConditionParameters, ModelConfigSelection, ModelConfigCase, TaskNodePureMetadata, TaskNodeExecutionPipelineStep, TaskOutputValidation, FinalizerNode, FinalizerInputBinding, OutputSchema, AggregateFinalizerConfig, BundleFinalizerConfig, SelectFinalizerConfig, SynthesizeFinalizerConfig, UtilityExecutionPolicy, Job, CatalogPlanningKind, CatalogRequestStatus, CatalogBinding, ScopedQuestionCatalogRequestEntry, DiscoveryDefinitionCatalogRequestEntry, DiscoveryDefinitionCatalogRequest, DiscoveryDefinitionPlanningFields, CatalogRequestEntry, StructuredDataFiltersV1, ConditionsDataFilters, } from './types/refs.js';
|
|
19
|
+
export { mergeGraphDocumentModel, EXELLIX_GRAPH_MODEL_VARIABLE_KEY, EXELLIX_STRUCTURED_DATA_FILTERS_V1, } from './types/refs.js';
|
|
20
|
+
export type { TaskNodeTaskConfiguration, TaskNodeScopedDataReaderPackSlot, } from './types/taskNodeConfiguration.js';
|
|
21
|
+
export { getTaskConfiguration } from './types/taskNodeConfiguration.js';
|
|
22
|
+
export type { NodeExecutionResult, NodeTraceEntry, StepAttemptRecord, StepFailureClassification, DebugNodeTraceEntry, DebugTaskRecord, ExecuteGraphStepResponse, } from './types/results.js';
|
|
23
|
+
export type { RunLogEntry, RunLogLevel, RunLogScope, RunLogMode, RunLogBuildOptions, RunLogBuildResult, } from './types/runLog.js';
|
|
24
|
+
export { AI_TASKS_RUN_LOG_METADATA_KEY, AI_TASKS_LOGXER_RUN_ID_METADATA_KEY, DEFAULT_MAX_RUN_LOG_ENTRIES, DEFAULT_MAX_RUN_LOG_DATA_JSON_CHARS, } from './types/runLog.js';
|
|
25
|
+
export { buildRunLog, resolveRunLogLimits, truncateRunLogData, parseRunLogEntryTs, normalizeExternalRunLogEntries, extractTaskRunLogFromMetadata, extractLogxerCorrelationFromMetadata, } from './runtime/buildRunLog.js';
|
|
26
|
+
export type { GraphExecutionEvent, NodeExecutionEvent, } from './types/events.js';
|
|
27
|
+
export { ExellixGraphError } from './errors/ExellixGraphError.js';
|
|
28
|
+
export { ExellixGraphErrorCode } from './errors/exellixGraphErrorCodes.js';
|
|
29
|
+
export { resolveTaskKey } from './runtime/resolveTaskKey.js';
|
|
30
|
+
export { readExecutionVariableBuckets, seedGraphVariableBucketsOnExecution, mirrorTaskVariablesOnExecution, seedGraphVariableBucketsFromRuntime, buildMemoryResolutionRootFromExecution, buildPredicateEvalContextForNode, } from './runtime/variables.js';
|
|
31
|
+
export type { ExecutionVariableBuckets } from './runtime/executionVariableBuckets.js';
|
|
32
|
+
export { resolveTaskNodeInputsForRunTask, resolveTaskNodeTaskVariableForRunTask, resolveTaskNodeInputBindingsForRunTask, } from './runtime/resolveTaskNodeInputs.js';
|
|
33
|
+
export { readTaskNodeInputsConfig, readTaskNodeModelInputSurface, isNodeInputsConfigSelectorType, } from './runtime/readTaskNodeInputsConfig.js';
|
|
34
|
+
export type { TaskNodeInputsConfigCarrier } from './runtime/readTaskNodeInputsConfig.js';
|
|
35
|
+
export { mergeMemory } from './runtime/memory.js';
|
|
36
|
+
export { selectByPath, writeByPath, parsePath } from './runtime/pathExpr.js';
|
|
37
|
+
export type { PathSegment } from './runtime/pathExpr.js';
|
|
38
|
+
export { evaluateStructuredDataFilters, evaluateDataFilterPredicate, getStructuredDataFilterPathViolations, isStructuredDataFiltersV1, } from './runtime/dataFiltersEvaluation.js';
|
|
39
|
+
export { evaluateTaskNodeConditions, evaluateConditionWhen, applyConditionNegate, } from './runtime/taskNodeConditionsEvaluation.js';
|
|
40
|
+
export type { TaskNodeConditionsEvalDeps, TaskNodeConditionsEvalResult, TaskNodeConditionEvalContext, } from './runtime/taskNodeConditionsEvaluation.js';
|
|
41
|
+
export { resolveModelConfigForNode, resolveGraphAiModelConfigAliases, } from './runtime/resolveModelConfigForNode.js';
|
|
42
|
+
export { isGraphAiModelConfig, isModelConfigSelection, isEmptyConditionWhen, conditionWhenSignature, countDefaultModelConfigCases, } from './runtime/modelConfigSelection.js';
|
|
43
|
+
export { GRAPH_ENGINE_MEMORY_PATH_ROOTS, splitGraphEngineMemoryPath, isAllowedGraphEngineMemoryPath, graphEngineMemoryPathValidationMessage, } from './runtime/graphEngineMemoryPaths.js';
|
|
44
|
+
export { buildRunTaskMainInput, extractCallerInputsBag, buildGraphEngineMemoryResolutionRoot, buildGraphEngineMemoryResolutionRootFromWorkingMemory, resolveGraphEngineMemoryPathValue, } from './runtime/resolveGraphEngineMemoryPaths.js';
|
|
45
|
+
export { mirrorRuntimeInputRawOnExecutionMemory, mirrorStructuredInputOntoExecutionMemory, } from './runtime/materializeStructuredRunTaskInput.js';
|
|
46
|
+
export { buildRunTaskTaskConfigurationForward } from './runtime/buildRunTaskTaskConfigurationForward.js';
|
|
47
|
+
export { normalizeSmartInputPath, collectSmartInputPaths, normalizeSmartInputConfigForRunTask, } from './runtime/smartInputPaths.js';
|
|
48
|
+
export { evaluateTaskNodeMainReadiness, buildMainReadinessResolutionRoot, resolveMainReadinessPolicy, collectInputSynthesisSourcePaths, } from './runtime/taskNodeMainReadiness.js';
|
|
49
|
+
export type { MainReadinessCheckId, MainReadinessEvaluation } from './runtime/taskNodeMainReadiness.js';
|
|
50
|
+
export { resolveCanonicalModelUsed } from './runtime/canonicalModelUsed.js';
|
|
51
|
+
export { buildAiTasksObservabilityRecord } from './runtime/aiTasksObservability.js';
|
|
52
|
+
export type { GraphEngineMemoryResolutionRoot } from './runtime/resolveGraphEngineMemoryPaths.js';
|
|
53
|
+
export { collectAiTasksNodeExtensionIssues, assertAiTasksNodeExtensionsValid, } from './inspection/validateAiTasksNodeExtensions.js';
|
|
54
|
+
export type { AiTasksNodeExtensionIssue } from './inspection/validateAiTasksNodeExtensions.js';
|
|
55
|
+
export type { EvaluateStructuredDataFiltersResult, EvaluateStructuredDataFiltersOptions, } from './runtime/dataFiltersEvaluation.js';
|
|
56
|
+
/** Execution-matrix host: resolve graph entry, seed execution, stable job ids, runtime binder. */
|
|
57
|
+
export { resolveGraphEntryFromGraph, createResolveGraphEntryFromLoader, buildExecutionSeedFromGraphEntry, validateExecutionSeedPaths, buildStableMatrixJobId, buildMatrixJobForGraphRun, buildGraphExecutionRequest, isExecuteGraphResultFailed, createMatrixHostGraphExecutor, } from './runtime/executionMatrixHost.js';
|
|
58
|
+
export type { BuildExecutionSeedSources, BuildExecutionSeedResult } from './runtime/executionMatrixHost.js';
|
|
59
|
+
export { assertHostJobId, newGraphRunTaskId } from './runtime/graphRunIdentity.js';
|
|
60
|
+
export { buildAiTasksRunTaskRequest, extractRunTaskMetadataPassthrough, extractRunTaskStrategyOverrides, resolveJobTypeId, resolveTaskTypeId, } from './runtime/buildAiTasksRunTaskRequest.js';
|
|
61
|
+
export type { BuildAiTasksRunTaskRequestArgs, RunTaskMetadataPassthrough, } from './runtime/buildAiTasksRunTaskRequest.js';
|
|
62
|
+
export { buildTaskNodeJobContext } from './runtime/buildTaskNodeJobContext.js';
|
|
63
|
+
export { resolveNarrixForTaskNode } from './runtime/resolveNarrixForTaskNode.js';
|
|
64
|
+
export { runTaskResponseSucceeded } from './runtime/runTaskResponse.js';
|
|
65
|
+
export { buildTaskNodeRunTaskRequest, validateTaskNodeRunTaskConfig, validateTaskNodeRunTaskInvoke, analyzeTaskNodeRunTaskRequest, } from './runtime/taskNodeRunTaskPreflight.js';
|
|
66
|
+
export type { BuildTaskNodeRunTaskRequestArgs, BuildTaskNodeRunTaskRequestResult, TaskNodeRunTaskPreflightSkipReason, ValidateTaskNodeRunTaskConfigArgs, ValidateTaskNodeRunTaskConfigResult, ValidateTaskNodeRunTaskInvokeArgs, ValidateTaskNodeRunTaskInvokeResult, AnalyzeTaskNodeRunTaskRequestArgs, AnalyzeTaskNodeRunTaskRequestResult, } from './runtime/taskNodeRunTaskPreflight.js';
|
|
67
|
+
/** Re-exported from `@exellix/ai-tasks` — preflight validation and analysis without `runTask`. */
|
|
68
|
+
export { validateRunTaskConfig, validateRunTaskInvoke, analyzeExpectedRunTaskInput, checkExpectedInputAgainstRequest, collectSmartInputValidationIssues, buildRunTaskValidationContext, analyzeRunTaskRequest, validateParsedOutput, analyzeSkillRequest, buildSkillRequestAnalysisPacket, formatSkillRequestAnalysisMarkdown, listTokens, analyzeTemplateResolution, renderSmartInput, extractTokenNamesFromStrings, getSkillTokens, getSkillContent, } from '@exellix/ai-tasks';
|
|
69
|
+
export type { RunTaskValidationIssue, RunTaskValidationResult, RunTaskInvokeValidationResult, ExpectedRunTaskInputPath, AnalyzeExpectedRunTaskInputResult, ValidateRunTaskInvokeParams, RunTaskTemplateResolver, AnalyzeRunTaskRequestOptions, AnalyzeRunTaskRequestResult, AnalyzeSkillRequestOptions, AnalyzeSkillRequestResult, SkillRequestAnalysisReport, OutputValidationResult, } from '@exellix/ai-tasks';
|
|
70
|
+
export { buildExellixGraphRuntimeObjects, setRuntimeObjectsLastJobId, summarizeRuntimeObjectsForPlayground, EXELLIX_GRAPH_RUNTIME_PACKAGE_NAME, EXELLIX_AI_TASKS_PACKAGE_NAME, } from './runtime/runtimeObjects.js';
|
|
71
|
+
export type { ActivixQueryableClient, LogxerQueryableClient, LogxerLogLine, PackageRuntimeObjects, RuntimeObjects, BuildExellixGraphRuntimeObjectsInput, RuntimeObjectsObservabilitySummary, } from './runtime/runtimeObjects.js';
|
|
72
|
+
export { assertCanonicalGraphDocument, getCanonicalGraphDocumentViolations, CANONICAL_GRAPH_TOP_LEVEL_KEYS, } from './runtime/validateCanonicalGraphDocument.js';
|
|
73
|
+
export { computeGraphDocumentContentSha256, stableStringifyGraphDocument, } from './runtime/graphDocumentFingerprint.js';
|
|
74
|
+
export { migrateLegacyGraphResponse, migrateLegacyGraphResponseDefinition, } from './runtime/graphResponseMigration.js';
|
|
75
|
+
export type { MigrateGraphResponseResult } from './runtime/graphResponseMigration.js';
|
|
76
|
+
export { applyAiTaskProfileWebScopingToNarrix, mapAiTaskProfileQuestionsToWebScopeQuestions, } from './runtime/applyAiTaskProfileWebScopingToNarrix.js';
|
|
77
|
+
export { createExellixGraphRuntime } from './runtime/ExellixGraphRuntime.js';
|
|
78
|
+
export type { RunTaskRequest, RunTaskResponse, TasksClientLike, GraphLoader as RuntimeGraphLoader, ExecuteGraphInput, GraphExecutionRequest, GraphRuntimeObject, GraphKnowledgeResolver, GraphKnowledgeResolverContext, ExecuteGraphResult, ExellixGraphRuntimeOptions, } from './runtime/ExellixGraphRuntime.js';
|
|
79
|
+
export type { PlanStatus, GraphPlan, GraphEngine, GraphEngineFactory, } from './runtime/GraphEngine.js';
|
|
80
|
+
export { InMemoryGraphLoader, DepGraphEngineFactory } from '../testkit/index.js';
|
|
81
|
+
export { FileGraphLoader } from './loaders/FileGraphLoader.js';
|
|
82
|
+
export type { FileGraphLoaderOptions } from './loaders/FileGraphLoader.js';
|
|
83
|
+
export { createActivityTrackerIntegration } from './integrations/ActivityTrackerIntegration.js';
|
|
84
|
+
export type { ActivityTrackerLike } from './integrations/ActivityTrackerIntegration.js';
|
|
85
|
+
export { createActivixNodeActivityIntegration } from './integrations/ActivixNodeActivityIntegration.js';
|
|
86
|
+
export type { CreateActivixNodeActivityIntegrationOptions } from './integrations/ActivixNodeActivityIntegration.js';
|
|
87
|
+
export { createActivixGraphRunIntegration } from './integrations/ActivixGraphRunIntegration.js';
|
|
88
|
+
export type { CreateActivixGraphRunIntegrationOptions } from './integrations/ActivixGraphRunIntegration.js';
|
|
89
|
+
export { createActivixFromEnv, resolveActivixExellixCollectionNamesFromEnv, } from './integrations/createActivixFromEnv.js';
|
|
90
|
+
export { createActivixExellixIntegration } from './integrations/createActivixExellixIntegration.js';
|
|
91
|
+
export type { CreateActivixExellixIntegrationOptions } from './integrations/createActivixExellixIntegration.js';
|
|
92
|
+
export { validateGraphPlanningCatalogDescriptorsInCatalox } from './integrations/cataloxGraphCatalog.js';
|
|
93
|
+
export type { GraphCatalogValidationIssue } from './integrations/cataloxGraphCatalog.js';
|
|
94
|
+
export { composeEventEmitters } from './runtime/events.js';
|
|
95
|
+
export { createPlaygroundReporter } from './playground/index.js';
|
|
96
|
+
export type { CreatePlaygroundReporterOptions, PlaygroundDebugArtifact, PlaygroundDebugArtifactKind, PlaygroundDebugSnapshot, PlaygroundReporter, PlaygroundStep, } from './playground/PlaygroundReporter.js';
|
|
97
|
+
export { getNodeScopingQuestion, getNodeMemoryShape, getNodeNarrixDiscovery, fetchNodeScopingData, inspectNode, resolveNodeSkillKey, getGraphNodes, getGraphCatalogs, inspectGraph, collectPredicatePaths, executionMemoryPathTail, executionMemoryTailsMatch, getNodeExecutionMemoryWriteTails, getNodeControlDependencies, getNodeSideEffects, inspectFinalizer, inspectNodeContract, inspectGraphContracts, EXELLIX_VIRTUAL_GRAPH_ENTRY_NODE_ID, EXELLIX_VIRTUAL_GRAPH_RESPONSE_NODE_ID, EXELLIX_VIRTUAL_BOUNDARY_NODE_METADATA_KEY, EXELLIX_VIRTUAL_BOUNDARY_EDGE_FLAG_KEY, getVirtualGraphEntryLayer, getVirtualGraphResponseLayer, materializeVirtualBoundaryDiagram, stripMaterializedVirtualBoundaryDiagram, validateCatalogPlanning, isCatalogBinding, isCatalogRequestEntry, } from './inspection/index.js';
|
|
98
|
+
export type { NodeScopingQuestion, NodeScopeSource, NodeScopeTarget, NodeScopingData, NodeMemoryShape, MemoryPath, NodeNarrixDiscovery, NodeInspection, GraphInspection, NodeIOEdge, GraphCatalogs, CatalogBindingSummary, CatalogPlanningValidationIssue, GraphVirtualIO, GraphVirtualIONode, GraphVirtualIOEdge, GraphVirtualIONodeRole, VirtualGraphEntryLayer, VirtualGraphResponseLayer, MaterializeVirtualBoundaryDiagramOptions, MaterializedVirtualBoundaryDiagram, MaterializedVirtualBoundaryDiagramMeta, InspectNodeContractOptions, LocalSkillKey, NodeExecutionType, FactProvenance, ProvenancedSection, NodeInputBindingEntry, ScopedDataDependency, NodeInputContract, ExecutionMemoryWriteSpec, NodeOutputContract, NodeSideEffects, ControlBranchEntry, NodeControlContract, NodeValidationContract, FinalizerContractInspection, NodeContractInspection, GraphContractsInspection, } from './inspection/index.js';
|
|
99
|
+
export type { NarrixPreProcessorConfig, WebScopeQuestion, LocalTaskHandler, LocalTaskContext } from './types/narrix.js';
|
|
100
|
+
export type { ScopedDataReaderConfig, ScopedDataReaderOutput, ScopedDataReaderPackOutput, ScopedAnswerAssemblerConfig, ScopedAnswerAssemblerOutput, ScopedAnswerWriterConfig, ScopedAnswerWriterOutput, } from './runtime/localSkills/index.js';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @exellix/graph-engine - Graph executor SDK (canonical 5.x)
|
|
3
|
+
*
|
|
4
|
+
* Core responsibilities:
|
|
5
|
+
* 1. Load graph (via injected loader)
|
|
6
|
+
* 2. Plan with graphenix
|
|
7
|
+
* 3. Execute nodes via ai-tasks
|
|
8
|
+
* 4. Commit outputs to graphenix
|
|
9
|
+
* 5. Repeat until done/fail
|
|
10
|
+
*
|
|
11
|
+
* Single canonical entry point: {@link createExellixGraphRuntime} returns
|
|
12
|
+
* `{ executeGraph({ model, runtime }: GraphExecutionRequest) }`. The legacy functional `executeGraph`
|
|
13
|
+
* and the `ExellixGraphClient` class were removed in 5.0.
|
|
14
|
+
*/
|
|
15
|
+
export { mergeGraphDocumentModel, EXELLIX_GRAPH_MODEL_VARIABLE_KEY, EXELLIX_STRUCTURED_DATA_FILTERS_V1, } from './types/refs.js';
|
|
16
|
+
export { getTaskConfiguration } from './types/taskNodeConfiguration.js';
|
|
17
|
+
export { AI_TASKS_RUN_LOG_METADATA_KEY, AI_TASKS_LOGXER_RUN_ID_METADATA_KEY, DEFAULT_MAX_RUN_LOG_ENTRIES, DEFAULT_MAX_RUN_LOG_DATA_JSON_CHARS, } from './types/runLog.js';
|
|
18
|
+
export { buildRunLog, resolveRunLogLimits, truncateRunLogData, parseRunLogEntryTs, normalizeExternalRunLogEntries, extractTaskRunLogFromMetadata, extractLogxerCorrelationFromMetadata, } from './runtime/buildRunLog.js';
|
|
19
|
+
// Errors
|
|
20
|
+
export { ExellixGraphError } from './errors/ExellixGraphError.js';
|
|
21
|
+
export { ExellixGraphErrorCode } from './errors/exellixGraphErrorCodes.js';
|
|
22
|
+
// Runtime utilities (exported for advanced use cases)
|
|
23
|
+
export { resolveTaskKey } from './runtime/resolveTaskKey.js';
|
|
24
|
+
export { readExecutionVariableBuckets, seedGraphVariableBucketsOnExecution, mirrorTaskVariablesOnExecution, seedGraphVariableBucketsFromRuntime, buildMemoryResolutionRootFromExecution, buildPredicateEvalContextForNode, } from './runtime/variables.js';
|
|
25
|
+
export { resolveTaskNodeInputsForRunTask, resolveTaskNodeTaskVariableForRunTask, resolveTaskNodeInputBindingsForRunTask, } from './runtime/resolveTaskNodeInputs.js';
|
|
26
|
+
export { readTaskNodeInputsConfig, readTaskNodeModelInputSurface, isNodeInputsConfigSelectorType, } from './runtime/readTaskNodeInputsConfig.js';
|
|
27
|
+
export { mergeMemory } from './runtime/memory.js';
|
|
28
|
+
export { selectByPath, writeByPath, parsePath } from './runtime/pathExpr.js';
|
|
29
|
+
export { evaluateStructuredDataFilters, evaluateDataFilterPredicate, getStructuredDataFilterPathViolations, isStructuredDataFiltersV1, } from './runtime/dataFiltersEvaluation.js';
|
|
30
|
+
export { evaluateTaskNodeConditions, evaluateConditionWhen, applyConditionNegate, } from './runtime/taskNodeConditionsEvaluation.js';
|
|
31
|
+
export { resolveModelConfigForNode, resolveGraphAiModelConfigAliases, } from './runtime/resolveModelConfigForNode.js';
|
|
32
|
+
export { isGraphAiModelConfig, isModelConfigSelection, isEmptyConditionWhen, conditionWhenSignature, countDefaultModelConfigCases, } from './runtime/modelConfigSelection.js';
|
|
33
|
+
export { GRAPH_ENGINE_MEMORY_PATH_ROOTS, splitGraphEngineMemoryPath, isAllowedGraphEngineMemoryPath, graphEngineMemoryPathValidationMessage, } from './runtime/graphEngineMemoryPaths.js';
|
|
34
|
+
export { buildRunTaskMainInput, extractCallerInputsBag, buildGraphEngineMemoryResolutionRoot, buildGraphEngineMemoryResolutionRootFromWorkingMemory, resolveGraphEngineMemoryPathValue, } from './runtime/resolveGraphEngineMemoryPaths.js';
|
|
35
|
+
export { mirrorRuntimeInputRawOnExecutionMemory, mirrorStructuredInputOntoExecutionMemory, } from './runtime/materializeStructuredRunTaskInput.js';
|
|
36
|
+
export { buildRunTaskTaskConfigurationForward } from './runtime/buildRunTaskTaskConfigurationForward.js';
|
|
37
|
+
export { normalizeSmartInputPath, collectSmartInputPaths, normalizeSmartInputConfigForRunTask, } from './runtime/smartInputPaths.js';
|
|
38
|
+
export { evaluateTaskNodeMainReadiness, buildMainReadinessResolutionRoot, resolveMainReadinessPolicy, collectInputSynthesisSourcePaths, } from './runtime/taskNodeMainReadiness.js';
|
|
39
|
+
export { resolveCanonicalModelUsed } from './runtime/canonicalModelUsed.js';
|
|
40
|
+
export { buildAiTasksObservabilityRecord } from './runtime/aiTasksObservability.js';
|
|
41
|
+
export { collectAiTasksNodeExtensionIssues, assertAiTasksNodeExtensionsValid, } from './inspection/validateAiTasksNodeExtensions.js';
|
|
42
|
+
/** Execution-matrix host: resolve graph entry, seed execution, stable job ids, runtime binder. */
|
|
43
|
+
export { resolveGraphEntryFromGraph, createResolveGraphEntryFromLoader, buildExecutionSeedFromGraphEntry, validateExecutionSeedPaths, buildStableMatrixJobId, buildMatrixJobForGraphRun, buildGraphExecutionRequest, isExecuteGraphResultFailed, createMatrixHostGraphExecutor, } from './runtime/executionMatrixHost.js';
|
|
44
|
+
export { assertHostJobId, newGraphRunTaskId } from './runtime/graphRunIdentity.js';
|
|
45
|
+
export { buildAiTasksRunTaskRequest, extractRunTaskMetadataPassthrough, extractRunTaskStrategyOverrides, resolveJobTypeId, resolveTaskTypeId, } from './runtime/buildAiTasksRunTaskRequest.js';
|
|
46
|
+
export { buildTaskNodeJobContext } from './runtime/buildTaskNodeJobContext.js';
|
|
47
|
+
export { resolveNarrixForTaskNode } from './runtime/resolveNarrixForTaskNode.js';
|
|
48
|
+
export { runTaskResponseSucceeded } from './runtime/runTaskResponse.js';
|
|
49
|
+
export { buildTaskNodeRunTaskRequest, validateTaskNodeRunTaskConfig, validateTaskNodeRunTaskInvoke, analyzeTaskNodeRunTaskRequest, } from './runtime/taskNodeRunTaskPreflight.js';
|
|
50
|
+
/** Re-exported from `@exellix/ai-tasks` — preflight validation and analysis without `runTask`. */
|
|
51
|
+
export { validateRunTaskConfig, validateRunTaskInvoke, analyzeExpectedRunTaskInput, checkExpectedInputAgainstRequest, collectSmartInputValidationIssues, buildRunTaskValidationContext, analyzeRunTaskRequest, validateParsedOutput, analyzeSkillRequest, buildSkillRequestAnalysisPacket, formatSkillRequestAnalysisMarkdown, listTokens, analyzeTemplateResolution, renderSmartInput, extractTokenNamesFromStrings, getSkillTokens, getSkillContent, } from '@exellix/ai-tasks';
|
|
52
|
+
export { buildExellixGraphRuntimeObjects, setRuntimeObjectsLastJobId, summarizeRuntimeObjectsForPlayground, EXELLIX_GRAPH_RUNTIME_PACKAGE_NAME, EXELLIX_AI_TASKS_PACKAGE_NAME, } from './runtime/runtimeObjects.js';
|
|
53
|
+
export { assertCanonicalGraphDocument, getCanonicalGraphDocumentViolations, CANONICAL_GRAPH_TOP_LEVEL_KEYS, } from './runtime/validateCanonicalGraphDocument.js';
|
|
54
|
+
export { computeGraphDocumentContentSha256, stableStringifyGraphDocument, } from './runtime/graphDocumentFingerprint.js';
|
|
55
|
+
export { migrateLegacyGraphResponse, migrateLegacyGraphResponseDefinition, } from './runtime/graphResponseMigration.js';
|
|
56
|
+
export { applyAiTaskProfileWebScopingToNarrix, mapAiTaskProfileQuestionsToWebScopeQuestions, } from './runtime/applyAiTaskProfileWebScopingToNarrix.js';
|
|
57
|
+
// New runtime with injection seam
|
|
58
|
+
export { createExellixGraphRuntime } from './runtime/ExellixGraphRuntime.js';
|
|
59
|
+
// Testkit (in-memory loader, dep engine, recording client — sample NARRIX tasks: `@exellix/graph-engine/testkit`)
|
|
60
|
+
export { InMemoryGraphLoader, DepGraphEngineFactory } from '../testkit/index.js';
|
|
61
|
+
// Graph loaders
|
|
62
|
+
export { FileGraphLoader } from './loaders/FileGraphLoader.js';
|
|
63
|
+
// Integrations
|
|
64
|
+
export { createActivityTrackerIntegration } from './integrations/ActivityTrackerIntegration.js';
|
|
65
|
+
export { createActivixNodeActivityIntegration } from './integrations/ActivixNodeActivityIntegration.js';
|
|
66
|
+
export { createActivixGraphRunIntegration } from './integrations/ActivixGraphRunIntegration.js';
|
|
67
|
+
export { createActivixFromEnv, resolveActivixExellixCollectionNamesFromEnv, } from './integrations/createActivixFromEnv.js';
|
|
68
|
+
export { createActivixExellixIntegration } from './integrations/createActivixExellixIntegration.js';
|
|
69
|
+
export { validateGraphPlanningCatalogDescriptorsInCatalox } from './integrations/cataloxGraphCatalog.js';
|
|
70
|
+
export { composeEventEmitters } from './runtime/events.js';
|
|
71
|
+
// Playground (full-visibility MD report)
|
|
72
|
+
export { createPlaygroundReporter } from './playground/index.js';
|
|
73
|
+
// Graph Inspection API
|
|
74
|
+
export { getNodeScopingQuestion, getNodeMemoryShape, getNodeNarrixDiscovery, fetchNodeScopingData, inspectNode, resolveNodeSkillKey, getGraphNodes, getGraphCatalogs, inspectGraph, collectPredicatePaths, executionMemoryPathTail, executionMemoryTailsMatch, getNodeExecutionMemoryWriteTails, getNodeControlDependencies, getNodeSideEffects, inspectFinalizer, inspectNodeContract, inspectGraphContracts, EXELLIX_VIRTUAL_GRAPH_ENTRY_NODE_ID, EXELLIX_VIRTUAL_GRAPH_RESPONSE_NODE_ID, EXELLIX_VIRTUAL_BOUNDARY_NODE_METADATA_KEY, EXELLIX_VIRTUAL_BOUNDARY_EDGE_FLAG_KEY, getVirtualGraphEntryLayer, getVirtualGraphResponseLayer, materializeVirtualBoundaryDiagram, stripMaterializedVirtualBoundaryDiagram, validateCatalogPlanning, isCatalogBinding, isCatalogRequestEntry, } from './inspection/index.js';
|
|
75
|
+
// Web context rendering — consume execution.webContext → markdown for prompts (Layer 04)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Graph, GraphNode } from '../types/refs.js';
|
|
2
|
+
import type { FinalizerContractInspection, GraphContractsInspection, NodeContractInspection, NodeSideEffects } from './contractTypes.js';
|
|
3
|
+
export declare function getNodeSideEffects(node: GraphNode): NodeSideEffects;
|
|
4
|
+
/**
|
|
5
|
+
* Finalizer-only contract inspection. Returns null if the node is not a finalizer.
|
|
6
|
+
*/
|
|
7
|
+
export declare function inspectFinalizer(node: GraphNode, options?: {
|
|
8
|
+
graph?: Graph;
|
|
9
|
+
}): FinalizerContractInspection | null;
|
|
10
|
+
export type InspectNodeContractOptions = {
|
|
11
|
+
upstreamWritePaths?: string[];
|
|
12
|
+
graph?: Graph;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Unified per-node contract: execution class, grouped I/O, side effects, validation, optional control graph.
|
|
16
|
+
*/
|
|
17
|
+
export declare function inspectNodeContract(node: GraphNode, options?: InspectNodeContractOptions): NodeContractInspection;
|
|
18
|
+
/**
|
|
19
|
+
* Graph-level contract view: full node contracts plus execution order and I/O edges.
|
|
20
|
+
*/
|
|
21
|
+
export declare function inspectGraphContracts(graph: Graph): GraphContractsInspection;
|