@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,23 @@
|
|
|
1
|
+
import { GraphNode } from './refs.js';
|
|
2
|
+
/**
|
|
3
|
+
* Event types emitted during graph execution
|
|
4
|
+
*/
|
|
5
|
+
export interface GraphExecutionEvent {
|
|
6
|
+
type: 'graph:start' | 'graph:complete' | 'graph:fail' | 'node:start' | 'node:complete' | 'node:fail';
|
|
7
|
+
timestamp: number;
|
|
8
|
+
/** Host correlation id (mandatory on every `executeGraph` call). */
|
|
9
|
+
jobId: string;
|
|
10
|
+
/** One UUID per graph run — generated inside graph-engine, sent on every `runTask` as `taskId`. */
|
|
11
|
+
taskId: string;
|
|
12
|
+
graphId: string;
|
|
13
|
+
nodeId?: string;
|
|
14
|
+
data?: any;
|
|
15
|
+
}
|
|
16
|
+
export interface NodeExecutionEvent extends GraphExecutionEvent {
|
|
17
|
+
type: 'node:start' | 'node:complete' | 'node:fail';
|
|
18
|
+
nodeId: string;
|
|
19
|
+
node: GraphNode;
|
|
20
|
+
skillKey?: string;
|
|
21
|
+
result?: any;
|
|
22
|
+
error?: any;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { RunTaskRequest } from '@exellix/ai-tasks';
|
|
2
|
+
/** Same as `RunTaskRequest['narrix']` (ai-tasks exports `RunTaskRequest` but not this alias on the root barrel). */
|
|
3
|
+
type AITasksNarrixPreProcessorConfig = NonNullable<RunTaskRequest['narrix']>;
|
|
4
|
+
/**
|
|
5
|
+
* Graph-engine wire shape for the resolved `RunTaskRequest.narrix` payload after merging
|
|
6
|
+
* `taskConfiguration.aiTaskProfile.webScoping` into `taskConfiguration.narrix`. Used internally; authors do
|
|
7
|
+
* **not** set web-scope fields on `taskConfiguration.narrix`.
|
|
8
|
+
*/
|
|
9
|
+
export type ResolvedNarrixWirePayload = AITasksNarrixPreProcessorConfig;
|
|
10
|
+
/** One web-scope question on the resolved narrix wire payload; produced from `aiTaskProfile.webScoping.questions`. */
|
|
11
|
+
export type WebScopeQuestion = {
|
|
12
|
+
id: string;
|
|
13
|
+
question: string;
|
|
14
|
+
purpose?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Authoring shape for `taskConfiguration.narrix` on a graph task node — discovery only.
|
|
18
|
+
*
|
|
19
|
+
* 5.x removed every web-scope key from this type. Authors set web intent under
|
|
20
|
+
* `taskConfiguration.aiTaskProfile.webScoping` (`enabled`, `questions: string[]`); graph-engine
|
|
21
|
+
* fills the corresponding fields on the resolved `RunTaskRequest.narrix` automatically,
|
|
22
|
+
* and `assertCanonicalGraphDocument` rejects web-scope keys here at load time.
|
|
23
|
+
*/
|
|
24
|
+
export type NarrixPreProcessorConfig = {
|
|
25
|
+
/** Which pack and entity type the engine runs (e.g. `"network.vuln.instances"`). */
|
|
26
|
+
datasetId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Opaque string from graph JSON (`taskConfiguration.narrix.layer`). Forwarded to NARRIX pack lookup only.
|
|
29
|
+
* Vocabulary and meaning live in your graph set / pack model — not in exellix-graph.
|
|
30
|
+
*/
|
|
31
|
+
layer?: string;
|
|
32
|
+
/** Narrative type IDs from the catalog this node can produce or consume. */
|
|
33
|
+
narrativeTypeIds?: string[];
|
|
34
|
+
/** Framework question this node answers (e.g. q0, q1, q2, q3, q5, q6). */
|
|
35
|
+
questionId?: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Context shape passed to NARRIX graph task handlers (matches ai-tasks LocalTaskContext).
|
|
39
|
+
*/
|
|
40
|
+
export type LocalTaskHandler = (args: {
|
|
41
|
+
input: unknown;
|
|
42
|
+
ctx: LocalTaskContext;
|
|
43
|
+
}) => Promise<unknown>;
|
|
44
|
+
export interface LocalTaskContext {
|
|
45
|
+
taskId?: string;
|
|
46
|
+
skillKey?: string;
|
|
47
|
+
jobMemory?: Record<string, unknown>;
|
|
48
|
+
taskMemory?: Record<string, unknown>;
|
|
49
|
+
executionMemory?: Record<string, unknown>;
|
|
50
|
+
variables?: Record<string, unknown>;
|
|
51
|
+
jobId?: string;
|
|
52
|
+
agentId?: string;
|
|
53
|
+
graphId?: string;
|
|
54
|
+
nodeId?: string;
|
|
55
|
+
prevNodeId?: string;
|
|
56
|
+
coreSkillId?: string;
|
|
57
|
+
masterSkillId?: string;
|
|
58
|
+
masterSkillActivityId?: string;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { Activix } from '@x12i/activix';
|
|
2
|
+
import type { LlmCallConfig, RunTaskRequest as AiTasksRunTaskRequest, RunTaskResponse as AiTasksRunTaskResponse } from '@exellix/ai-tasks';
|
|
3
|
+
import type { GraphModelAliasConfig, ModelConfigSelection, TaskNodeRuntimeObject } from './refs.js';
|
|
4
|
+
import type { RuntimeObjects } from '../runtime/runtimeObjects.js';
|
|
5
|
+
/**
|
|
6
|
+
* NOTE: `@exellix/ai-tasks` 5.5+ removed the exported `RunTaskDiagnostics` type.
|
|
7
|
+
* We keep a permissive type here for forward-compat while still forwarding the object to `runTask`.
|
|
8
|
+
*/
|
|
9
|
+
export type RunTaskDiagnostics = Record<string, unknown>;
|
|
10
|
+
/** One step in the execution pipeline (pre → main → post). Compatible with @exellix/ai-tasks ExecutionStep. */
|
|
11
|
+
export interface ExecutionStepOption {
|
|
12
|
+
phase: 'pre' | 'main' | 'post';
|
|
13
|
+
type: string;
|
|
14
|
+
config?: unknown;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Skill key resolution options
|
|
18
|
+
*/
|
|
19
|
+
export interface SkillKeyResolutionOptions {
|
|
20
|
+
allowFallbackToNodeId?: boolean;
|
|
21
|
+
fallbackPrefix?: string;
|
|
22
|
+
aliases?: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Per-task-node retry policy for transient `runTask` failures (timeouts, token-limit).
|
|
26
|
+
* Graph-level defaults may be overridden by `node.taskConfiguration.stepRetryPolicy`.
|
|
27
|
+
*/
|
|
28
|
+
export interface StepRetryPolicy {
|
|
29
|
+
/** Total attempts including the first (default **3**). Minimum **1**. */
|
|
30
|
+
maxAttempts?: number;
|
|
31
|
+
/** When false, timeouts do not trigger an automatic retry. Default **true**. */
|
|
32
|
+
retryOnTimeout?: boolean;
|
|
33
|
+
/** When false, token-limit signals do not trigger retry / bump. Default **true**. */
|
|
34
|
+
retryOnTokenLimit?: boolean;
|
|
35
|
+
/** Applied to effective max tokens before each token-limit retry (default **2**). */
|
|
36
|
+
tokenBumpMultiplier?: number;
|
|
37
|
+
/** Upper bound for `maxTokens` after bump (default **16000**). */
|
|
38
|
+
tokenBumpCap?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Used when neither `llmCall.maxTokens` nor `llmCall.max_tokens` is set on the outbound request
|
|
41
|
+
* (default **2000**). `modelConfig` is reserved for model selection.
|
|
42
|
+
*/
|
|
43
|
+
baseMaxTokensFallback?: number;
|
|
44
|
+
}
|
|
45
|
+
/** MAIN gate before `runTask`: empty execution input / synthesis context (graphs-studio G1, G4). */
|
|
46
|
+
export type MainReadinessPolicy = 'fail' | 'warn' | 'off';
|
|
47
|
+
/**
|
|
48
|
+
* Run-scoped knobs for `GraphRuntimeObject` (merged with {@link ExellixGraphRuntimeOptions} defaults).
|
|
49
|
+
*
|
|
50
|
+
* Precedence: explicit per-invocation input fields override `ExellixGraphRuntimeOptions` defaults.
|
|
51
|
+
* Within a node, graph-level `executionPipeline` overrides lose to node / `execution.executionPipeline`.
|
|
52
|
+
*/
|
|
53
|
+
export interface HostExecuteGraphRunOptions {
|
|
54
|
+
/**
|
|
55
|
+
* Stop scheduling further nodes after first failure when true.
|
|
56
|
+
* Default in 5.x: `false` (canonical `createExellixGraphRuntime().executeGraph(...)`).
|
|
57
|
+
*/
|
|
58
|
+
failFast?: boolean;
|
|
59
|
+
skillKeyResolution?: SkillKeyResolutionOptions;
|
|
60
|
+
nodeTimeoutMs?: number;
|
|
61
|
+
executionPipeline?: ExecutionStepOption[];
|
|
62
|
+
playgroundMeta?: Record<string, unknown>;
|
|
63
|
+
clearSynthesizedContextPerNode?: boolean;
|
|
64
|
+
modelConfig?: ModelConfigSelection;
|
|
65
|
+
aliasConfig?: GraphModelAliasConfig;
|
|
66
|
+
nodes?: Record<string, TaskNodeRuntimeObject>;
|
|
67
|
+
llmCall?: LlmCallConfig;
|
|
68
|
+
runTaskIdentity?: Record<string, unknown>;
|
|
69
|
+
runTaskExecutionMode?: 'default' | 'trace';
|
|
70
|
+
runLogMode?: import('./runLog.js').RunLogMode;
|
|
71
|
+
maxRunLogEntries?: number;
|
|
72
|
+
maxRunLogDataJsonChars?: number;
|
|
73
|
+
runTaskDiagnostics?: RunTaskDiagnostics;
|
|
74
|
+
runtimeObjects?: RuntimeObjects;
|
|
75
|
+
/** Optional defaults for automatic step retries (timeouts / token-limit); node metadata may override. */
|
|
76
|
+
stepRetryPolicy?: StepRetryPolicy;
|
|
77
|
+
/**
|
|
78
|
+
* When `fail` or `warn`, checks declared graph entry / smart-input paths before MAIN `runTask`.
|
|
79
|
+
* Node `taskConfiguration.mainReadinessPolicy` overrides. Default `off`.
|
|
80
|
+
*/
|
|
81
|
+
mainReadinessPolicy?: MainReadinessPolicy;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Optional Activix-backed persistence for per-node execution rows.
|
|
85
|
+
* When this block is present, logging is on unless `enabled: false`.
|
|
86
|
+
*/
|
|
87
|
+
export interface ActivixNodeActivityExellixConfig {
|
|
88
|
+
/** Default true when `activixNodeActivity` is set. */
|
|
89
|
+
enabled?: boolean;
|
|
90
|
+
activix: Activix;
|
|
91
|
+
/** Activix collection role for node activity rows. */
|
|
92
|
+
collection?: string;
|
|
93
|
+
/** Attach lightweight input hints on `node:start` records. */
|
|
94
|
+
includeInputSnapshot?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* When true, attempt to extract structured NARRIX outcome fields from `node:complete` output
|
|
97
|
+
* and persist them as `narrixSummary` in the node activity row.
|
|
98
|
+
*/
|
|
99
|
+
extractNarrixOutcome?: boolean;
|
|
100
|
+
}
|
|
101
|
+
/** Canonical shape: `@exellix/ai-tasks` `RUNTASK_REQUEST.md` (required `jobTypeId`, `taskTypeId`, canonical `input`). */
|
|
102
|
+
export type RunTaskRequest = AiTasksRunTaskRequest;
|
|
103
|
+
/**
|
|
104
|
+
* Task client response: `@exellix/ai-tasks` / `@exellix/ai-skills` payload plus adapter fields used by graph-engine
|
|
105
|
+
* (`success`, `ok`, `output`, `rawContent`) when using {@link ../testkit/RealTasksClient.ts} or mocks.
|
|
106
|
+
*/
|
|
107
|
+
export type RunTaskResponse = AiTasksRunTaskResponse & {
|
|
108
|
+
success?: boolean;
|
|
109
|
+
ok?: boolean;
|
|
110
|
+
output?: unknown;
|
|
111
|
+
rawContent?: string;
|
|
112
|
+
error?: {
|
|
113
|
+
code?: string;
|
|
114
|
+
message?: string;
|
|
115
|
+
diagnostics?: unknown;
|
|
116
|
+
[key: string]: unknown;
|
|
117
|
+
};
|
|
118
|
+
execution?: unknown;
|
|
119
|
+
executionMemory?: unknown;
|
|
120
|
+
meta?: Record<string, unknown>;
|
|
121
|
+
[key: string]: unknown;
|
|
122
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|