@mastra/core 0.9.0 → 0.9.1-alpha.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/dist/agent/index.cjs +2 -2
- package/dist/agent/index.d.cts +4 -2
- package/dist/agent/index.d.ts +4 -2
- package/dist/agent/index.js +1 -1
- package/dist/{base-oP3DoUrm.d.cts → base-CZmT-p10.d.cts} +524 -53
- package/dist/{base-Bk5V1doj.d.ts → base-DDoWFpFc.d.ts} +524 -53
- package/dist/{chunk-NTHHPNOW.js → chunk-34622N67.js} +1 -1
- package/dist/{chunk-ATXF6TIO.cjs → chunk-422BXQRT.cjs} +24 -677
- package/dist/{chunk-HARYMLZH.js → chunk-4K4DHXRF.js} +6 -658
- package/dist/{chunk-N2ONCUUS.js → chunk-6AHC67YY.js} +132 -12
- package/dist/chunk-7AGAXO6B.cjs +588 -0
- package/dist/{chunk-GEIPVIW4.js → chunk-BFF2O6RO.js} +1 -1
- package/dist/{chunk-RASVJ3TR.js → chunk-BU45BMXY.js} +55 -1
- package/dist/{chunk-DIZZQ3E5.cjs → chunk-CEXM6WP5.cjs} +2 -2
- package/dist/chunk-HNEE7IF4.js +60 -0
- package/dist/{chunk-NZDXKMDP.cjs → chunk-LABUWBKX.cjs} +1 -1
- package/dist/chunk-MUNFCOMB.cjs +62 -0
- package/dist/{chunk-GJWCFDFN.js → chunk-PS2ZF6MA.js} +1 -1
- package/dist/{chunk-M472GIT6.js → chunk-SGGPJWRQ.js} +1 -1
- package/dist/{chunk-7CSNWYGJ.cjs → chunk-U5DGGGS2.cjs} +2 -2
- package/dist/{chunk-W5IA5OGL.cjs → chunk-V7IE36YV.cjs} +58 -4
- package/dist/chunk-VMVXIPGW.js +586 -0
- package/dist/{chunk-53P5ZBJE.cjs → chunk-YTTBFAQJ.cjs} +2 -2
- package/dist/{chunk-KZWBYRXW.cjs → chunk-YZFNMXY4.cjs} +135 -14
- package/dist/di/index.cjs +2 -2
- package/dist/di/index.d.cts +1 -52
- package/dist/di/index.d.ts +1 -52
- package/dist/di/index.js +1 -1
- package/dist/eval/index.d.cts +4 -2
- package/dist/eval/index.d.ts +4 -2
- package/dist/index.cjs +60 -55
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +10 -9
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.d.cts +4 -2
- package/dist/integration/index.d.ts +4 -2
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.cjs +8 -0
- package/dist/llm/index.d.cts +4 -2
- package/dist/llm/index.d.ts +4 -2
- package/dist/llm/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +4 -2
- package/dist/mastra/index.d.ts +4 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +7 -3
- package/dist/memory/index.d.cts +4 -2
- package/dist/memory/index.d.ts +4 -2
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +4 -4
- package/dist/network/index.d.cts +4 -2
- package/dist/network/index.d.ts +4 -2
- package/dist/network/index.js +2 -2
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +4 -2
- package/dist/relevance/index.d.ts +4 -2
- package/dist/relevance/index.js +1 -1
- package/dist/runtime-context/index.cjs +7 -68
- package/dist/runtime-context/index.js +1 -69
- package/dist/server/index.d.cts +4 -2
- package/dist/server/index.d.ts +4 -2
- package/dist/storage/index.d.cts +4 -2
- package/dist/storage/index.d.ts +4 -2
- package/dist/storage/libsql/index.cjs +19 -0
- package/dist/storage/libsql/index.d.cts +7 -8
- package/dist/storage/libsql/index.d.ts +7 -8
- package/dist/storage/libsql/index.js +19 -0
- package/dist/telemetry/index.d.cts +4 -2
- package/dist/telemetry/index.d.ts +4 -2
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.d.cts +4 -2
- package/dist/tools/index.d.ts +4 -2
- package/dist/tools/index.js +1 -1
- package/dist/utils.cjs +14 -14
- package/dist/utils.d.cts +6 -4
- package/dist/utils.d.ts +6 -4
- package/dist/utils.js +1 -1
- package/dist/voice/index.d.cts +5 -3
- package/dist/voice/index.d.ts +5 -3
- package/dist/workflows/index.cjs +22 -26
- package/dist/workflows/index.d.cts +5 -3
- package/dist/workflows/index.d.ts +5 -3
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/vNext/index.cjs +1058 -0
- package/dist/workflows/vNext/index.d.cts +180 -0
- package/dist/workflows/vNext/index.d.ts +180 -0
- package/dist/workflows/vNext/index.js +1046 -0
- package/package.json +11 -1
- package/workflows/vNext.d.ts +1 -0
- /package/dist/{chunk-WEYWYKLG.cjs → chunk-27PAET7X.cjs} +0 -0
- /package/dist/{chunk-FRQFWZDN.cjs → chunk-HSVOEWAM.cjs} +0 -0
- /package/dist/{chunk-ZDWFBE5L.js → chunk-NH5WJNNS.js} +0 -0
- /package/dist/{chunk-LANFNMEE.js → chunk-SGTFVHOZ.js} +0 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { i as ExecutionEngine, j as ExecutionGraph, k as StepResult, l as StepFlowEntry, N as NewStep, m as ExecuteFunction } from '../../base-CZmT-p10.cjs';
|
|
2
|
+
export { y as ExtractSchemaFromStep, x as ExtractSchemaType, s as NewWorkflow, r as NewWorkflowConfig, P as PathsToStringProps, R as Run, u as StepFailure, t as StepSuccess, v as StepSuspended, w as StepsRecord, z as VariableReference, B as WatchEvent, q as WorkflowResult, Z as ZodPathType, o as cloneStep, n as createStep, p as createWorkflow } from '../../base-CZmT-p10.cjs';
|
|
3
|
+
import EventEmitter from 'events';
|
|
4
|
+
import { RuntimeContext } from '../../runtime-context/index.cjs';
|
|
5
|
+
import 'ai';
|
|
6
|
+
import '../../base-BihKcqDY.cjs';
|
|
7
|
+
import '@opentelemetry/api';
|
|
8
|
+
import '../../index-CquI0inB.cjs';
|
|
9
|
+
import 'stream';
|
|
10
|
+
import 'pino';
|
|
11
|
+
import '@opentelemetry/sdk-trace-base';
|
|
12
|
+
import '../../types-BtMyV38I.cjs';
|
|
13
|
+
import 'sift';
|
|
14
|
+
import 'zod';
|
|
15
|
+
import 'json-schema';
|
|
16
|
+
import 'xstate';
|
|
17
|
+
import 'node:events';
|
|
18
|
+
import '../../vector/index.cjs';
|
|
19
|
+
import '../../vector/filter/index.cjs';
|
|
20
|
+
import '../../tts/index.cjs';
|
|
21
|
+
import '../../deployer/index.cjs';
|
|
22
|
+
import '../../bundler/index.cjs';
|
|
23
|
+
import 'hono';
|
|
24
|
+
import 'hono/cors';
|
|
25
|
+
import 'hono-openapi';
|
|
26
|
+
import 'ai/test';
|
|
27
|
+
|
|
28
|
+
type ExecutionContext = {
|
|
29
|
+
executionPath: number[];
|
|
30
|
+
suspendedPaths: Record<string, number[]>;
|
|
31
|
+
retryConfig: {
|
|
32
|
+
attempts: number;
|
|
33
|
+
delay: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Default implementation of the ExecutionEngine using XState
|
|
38
|
+
*/
|
|
39
|
+
declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
40
|
+
/**
|
|
41
|
+
* Executes a workflow run with the provided execution graph and input
|
|
42
|
+
* @param graph The execution graph to execute
|
|
43
|
+
* @param input The input data for the workflow
|
|
44
|
+
* @returns A promise that resolves to the workflow output
|
|
45
|
+
*/
|
|
46
|
+
execute<TInput, TOutput>(params: {
|
|
47
|
+
workflowId: string;
|
|
48
|
+
runId: string;
|
|
49
|
+
graph: ExecutionGraph;
|
|
50
|
+
input?: TInput;
|
|
51
|
+
resume?: {
|
|
52
|
+
steps: string[];
|
|
53
|
+
stepResults: Record<string, StepResult<any>>;
|
|
54
|
+
resumePayload: any;
|
|
55
|
+
resumePath: number[];
|
|
56
|
+
};
|
|
57
|
+
emitter: EventEmitter;
|
|
58
|
+
retryConfig?: {
|
|
59
|
+
attempts?: number;
|
|
60
|
+
delay?: number;
|
|
61
|
+
};
|
|
62
|
+
runtimeContext: RuntimeContext;
|
|
63
|
+
}): Promise<TOutput>;
|
|
64
|
+
getStepOutput(stepResults: Record<string, any>, step?: StepFlowEntry): any;
|
|
65
|
+
executeStep({ step, stepResults, executionContext, resume, prevOutput, emitter, runtimeContext, }: {
|
|
66
|
+
step: NewStep<string, any, any>;
|
|
67
|
+
stepResults: Record<string, StepResult<any>>;
|
|
68
|
+
executionContext: ExecutionContext;
|
|
69
|
+
resume?: {
|
|
70
|
+
steps: string[];
|
|
71
|
+
resumePayload: any;
|
|
72
|
+
};
|
|
73
|
+
prevOutput: any;
|
|
74
|
+
emitter: EventEmitter;
|
|
75
|
+
runtimeContext: RuntimeContext;
|
|
76
|
+
}): Promise<StepResult<any>>;
|
|
77
|
+
executeParallel({ workflowId, runId, entry, prevStep, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
78
|
+
workflowId: string;
|
|
79
|
+
runId: string;
|
|
80
|
+
entry: {
|
|
81
|
+
type: 'parallel';
|
|
82
|
+
steps: StepFlowEntry[];
|
|
83
|
+
};
|
|
84
|
+
prevStep: StepFlowEntry;
|
|
85
|
+
stepResults: Record<string, StepResult<any>>;
|
|
86
|
+
resume?: {
|
|
87
|
+
steps: string[];
|
|
88
|
+
stepResults: Record<string, StepResult<any>>;
|
|
89
|
+
resumePayload: any;
|
|
90
|
+
resumePath: number[];
|
|
91
|
+
};
|
|
92
|
+
executionContext: ExecutionContext;
|
|
93
|
+
emitter: EventEmitter;
|
|
94
|
+
runtimeContext: RuntimeContext;
|
|
95
|
+
}): Promise<StepResult<any>>;
|
|
96
|
+
executeConditional({ workflowId, runId, entry, prevOutput, prevStep, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
97
|
+
workflowId: string;
|
|
98
|
+
runId: string;
|
|
99
|
+
entry: {
|
|
100
|
+
type: 'conditional';
|
|
101
|
+
steps: StepFlowEntry[];
|
|
102
|
+
conditions: ExecuteFunction<any, any, any, any>[];
|
|
103
|
+
};
|
|
104
|
+
prevStep: StepFlowEntry;
|
|
105
|
+
prevOutput: any;
|
|
106
|
+
stepResults: Record<string, StepResult<any>>;
|
|
107
|
+
resume?: {
|
|
108
|
+
steps: string[];
|
|
109
|
+
stepResults: Record<string, StepResult<any>>;
|
|
110
|
+
resumePayload: any;
|
|
111
|
+
resumePath: number[];
|
|
112
|
+
};
|
|
113
|
+
executionContext: ExecutionContext;
|
|
114
|
+
emitter: EventEmitter;
|
|
115
|
+
runtimeContext: RuntimeContext;
|
|
116
|
+
}): Promise<StepResult<any>>;
|
|
117
|
+
executeLoop({ entry, prevOutput, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
118
|
+
workflowId: string;
|
|
119
|
+
runId: string;
|
|
120
|
+
entry: {
|
|
121
|
+
type: 'loop';
|
|
122
|
+
step: NewStep;
|
|
123
|
+
condition: ExecuteFunction<any, any, any, any>;
|
|
124
|
+
loopType: 'dowhile' | 'dountil';
|
|
125
|
+
};
|
|
126
|
+
prevStep: StepFlowEntry;
|
|
127
|
+
prevOutput: any;
|
|
128
|
+
stepResults: Record<string, StepResult<any>>;
|
|
129
|
+
resume?: {
|
|
130
|
+
steps: string[];
|
|
131
|
+
stepResults: Record<string, StepResult<any>>;
|
|
132
|
+
resumePayload: any;
|
|
133
|
+
resumePath: number[];
|
|
134
|
+
};
|
|
135
|
+
executionContext: ExecutionContext;
|
|
136
|
+
emitter: EventEmitter;
|
|
137
|
+
runtimeContext: RuntimeContext;
|
|
138
|
+
}): Promise<StepResult<any>>;
|
|
139
|
+
executeForeach({ entry, prevOutput, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
140
|
+
workflowId: string;
|
|
141
|
+
runId: string;
|
|
142
|
+
entry: {
|
|
143
|
+
type: 'foreach';
|
|
144
|
+
step: NewStep;
|
|
145
|
+
opts: {
|
|
146
|
+
concurrency: number;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
prevStep: StepFlowEntry;
|
|
150
|
+
prevOutput: any;
|
|
151
|
+
stepResults: Record<string, StepResult<any>>;
|
|
152
|
+
resume?: {
|
|
153
|
+
steps: string[];
|
|
154
|
+
stepResults: Record<string, StepResult<any>>;
|
|
155
|
+
resumePayload: any;
|
|
156
|
+
resumePath: number[];
|
|
157
|
+
};
|
|
158
|
+
executionContext: ExecutionContext;
|
|
159
|
+
emitter: EventEmitter;
|
|
160
|
+
runtimeContext: RuntimeContext;
|
|
161
|
+
}): Promise<StepResult<any>>;
|
|
162
|
+
executeEntry({ workflowId, runId, entry, prevStep, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
163
|
+
workflowId: string;
|
|
164
|
+
runId: string;
|
|
165
|
+
entry: StepFlowEntry;
|
|
166
|
+
prevStep: StepFlowEntry;
|
|
167
|
+
stepResults: Record<string, StepResult<any>>;
|
|
168
|
+
resume?: {
|
|
169
|
+
steps: string[];
|
|
170
|
+
stepResults: Record<string, StepResult<any>>;
|
|
171
|
+
resumePayload: any;
|
|
172
|
+
resumePath: number[];
|
|
173
|
+
};
|
|
174
|
+
executionContext: ExecutionContext;
|
|
175
|
+
emitter: EventEmitter;
|
|
176
|
+
runtimeContext: RuntimeContext;
|
|
177
|
+
}): Promise<StepResult<any>>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export { DefaultExecutionEngine, ExecuteFunction, ExecutionEngine, ExecutionGraph, NewStep, StepFlowEntry, StepResult };
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { i as ExecutionEngine, j as ExecutionGraph, k as StepResult, l as StepFlowEntry, N as NewStep, m as ExecuteFunction } from '../../base-DDoWFpFc.js';
|
|
2
|
+
export { y as ExtractSchemaFromStep, x as ExtractSchemaType, s as NewWorkflow, r as NewWorkflowConfig, P as PathsToStringProps, R as Run, u as StepFailure, t as StepSuccess, v as StepSuspended, w as StepsRecord, z as VariableReference, B as WatchEvent, q as WorkflowResult, Z as ZodPathType, o as cloneStep, n as createStep, p as createWorkflow } from '../../base-DDoWFpFc.js';
|
|
3
|
+
import EventEmitter from 'events';
|
|
4
|
+
import { RuntimeContext } from '../../runtime-context/index.js';
|
|
5
|
+
import 'ai';
|
|
6
|
+
import '../../base-DT2poiVK.js';
|
|
7
|
+
import '@opentelemetry/api';
|
|
8
|
+
import '../../index-CquI0inB.js';
|
|
9
|
+
import 'stream';
|
|
10
|
+
import 'pino';
|
|
11
|
+
import '@opentelemetry/sdk-trace-base';
|
|
12
|
+
import '../../types-BtMyV38I.js';
|
|
13
|
+
import 'sift';
|
|
14
|
+
import 'zod';
|
|
15
|
+
import 'json-schema';
|
|
16
|
+
import 'xstate';
|
|
17
|
+
import 'node:events';
|
|
18
|
+
import '../../vector/index.js';
|
|
19
|
+
import '../../vector/filter/index.js';
|
|
20
|
+
import '../../tts/index.js';
|
|
21
|
+
import '../../deployer/index.js';
|
|
22
|
+
import '../../bundler/index.js';
|
|
23
|
+
import 'hono';
|
|
24
|
+
import 'hono/cors';
|
|
25
|
+
import 'hono-openapi';
|
|
26
|
+
import 'ai/test';
|
|
27
|
+
|
|
28
|
+
type ExecutionContext = {
|
|
29
|
+
executionPath: number[];
|
|
30
|
+
suspendedPaths: Record<string, number[]>;
|
|
31
|
+
retryConfig: {
|
|
32
|
+
attempts: number;
|
|
33
|
+
delay: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Default implementation of the ExecutionEngine using XState
|
|
38
|
+
*/
|
|
39
|
+
declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
40
|
+
/**
|
|
41
|
+
* Executes a workflow run with the provided execution graph and input
|
|
42
|
+
* @param graph The execution graph to execute
|
|
43
|
+
* @param input The input data for the workflow
|
|
44
|
+
* @returns A promise that resolves to the workflow output
|
|
45
|
+
*/
|
|
46
|
+
execute<TInput, TOutput>(params: {
|
|
47
|
+
workflowId: string;
|
|
48
|
+
runId: string;
|
|
49
|
+
graph: ExecutionGraph;
|
|
50
|
+
input?: TInput;
|
|
51
|
+
resume?: {
|
|
52
|
+
steps: string[];
|
|
53
|
+
stepResults: Record<string, StepResult<any>>;
|
|
54
|
+
resumePayload: any;
|
|
55
|
+
resumePath: number[];
|
|
56
|
+
};
|
|
57
|
+
emitter: EventEmitter;
|
|
58
|
+
retryConfig?: {
|
|
59
|
+
attempts?: number;
|
|
60
|
+
delay?: number;
|
|
61
|
+
};
|
|
62
|
+
runtimeContext: RuntimeContext;
|
|
63
|
+
}): Promise<TOutput>;
|
|
64
|
+
getStepOutput(stepResults: Record<string, any>, step?: StepFlowEntry): any;
|
|
65
|
+
executeStep({ step, stepResults, executionContext, resume, prevOutput, emitter, runtimeContext, }: {
|
|
66
|
+
step: NewStep<string, any, any>;
|
|
67
|
+
stepResults: Record<string, StepResult<any>>;
|
|
68
|
+
executionContext: ExecutionContext;
|
|
69
|
+
resume?: {
|
|
70
|
+
steps: string[];
|
|
71
|
+
resumePayload: any;
|
|
72
|
+
};
|
|
73
|
+
prevOutput: any;
|
|
74
|
+
emitter: EventEmitter;
|
|
75
|
+
runtimeContext: RuntimeContext;
|
|
76
|
+
}): Promise<StepResult<any>>;
|
|
77
|
+
executeParallel({ workflowId, runId, entry, prevStep, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
78
|
+
workflowId: string;
|
|
79
|
+
runId: string;
|
|
80
|
+
entry: {
|
|
81
|
+
type: 'parallel';
|
|
82
|
+
steps: StepFlowEntry[];
|
|
83
|
+
};
|
|
84
|
+
prevStep: StepFlowEntry;
|
|
85
|
+
stepResults: Record<string, StepResult<any>>;
|
|
86
|
+
resume?: {
|
|
87
|
+
steps: string[];
|
|
88
|
+
stepResults: Record<string, StepResult<any>>;
|
|
89
|
+
resumePayload: any;
|
|
90
|
+
resumePath: number[];
|
|
91
|
+
};
|
|
92
|
+
executionContext: ExecutionContext;
|
|
93
|
+
emitter: EventEmitter;
|
|
94
|
+
runtimeContext: RuntimeContext;
|
|
95
|
+
}): Promise<StepResult<any>>;
|
|
96
|
+
executeConditional({ workflowId, runId, entry, prevOutput, prevStep, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
97
|
+
workflowId: string;
|
|
98
|
+
runId: string;
|
|
99
|
+
entry: {
|
|
100
|
+
type: 'conditional';
|
|
101
|
+
steps: StepFlowEntry[];
|
|
102
|
+
conditions: ExecuteFunction<any, any, any, any>[];
|
|
103
|
+
};
|
|
104
|
+
prevStep: StepFlowEntry;
|
|
105
|
+
prevOutput: any;
|
|
106
|
+
stepResults: Record<string, StepResult<any>>;
|
|
107
|
+
resume?: {
|
|
108
|
+
steps: string[];
|
|
109
|
+
stepResults: Record<string, StepResult<any>>;
|
|
110
|
+
resumePayload: any;
|
|
111
|
+
resumePath: number[];
|
|
112
|
+
};
|
|
113
|
+
executionContext: ExecutionContext;
|
|
114
|
+
emitter: EventEmitter;
|
|
115
|
+
runtimeContext: RuntimeContext;
|
|
116
|
+
}): Promise<StepResult<any>>;
|
|
117
|
+
executeLoop({ entry, prevOutput, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
118
|
+
workflowId: string;
|
|
119
|
+
runId: string;
|
|
120
|
+
entry: {
|
|
121
|
+
type: 'loop';
|
|
122
|
+
step: NewStep;
|
|
123
|
+
condition: ExecuteFunction<any, any, any, any>;
|
|
124
|
+
loopType: 'dowhile' | 'dountil';
|
|
125
|
+
};
|
|
126
|
+
prevStep: StepFlowEntry;
|
|
127
|
+
prevOutput: any;
|
|
128
|
+
stepResults: Record<string, StepResult<any>>;
|
|
129
|
+
resume?: {
|
|
130
|
+
steps: string[];
|
|
131
|
+
stepResults: Record<string, StepResult<any>>;
|
|
132
|
+
resumePayload: any;
|
|
133
|
+
resumePath: number[];
|
|
134
|
+
};
|
|
135
|
+
executionContext: ExecutionContext;
|
|
136
|
+
emitter: EventEmitter;
|
|
137
|
+
runtimeContext: RuntimeContext;
|
|
138
|
+
}): Promise<StepResult<any>>;
|
|
139
|
+
executeForeach({ entry, prevOutput, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
140
|
+
workflowId: string;
|
|
141
|
+
runId: string;
|
|
142
|
+
entry: {
|
|
143
|
+
type: 'foreach';
|
|
144
|
+
step: NewStep;
|
|
145
|
+
opts: {
|
|
146
|
+
concurrency: number;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
prevStep: StepFlowEntry;
|
|
150
|
+
prevOutput: any;
|
|
151
|
+
stepResults: Record<string, StepResult<any>>;
|
|
152
|
+
resume?: {
|
|
153
|
+
steps: string[];
|
|
154
|
+
stepResults: Record<string, StepResult<any>>;
|
|
155
|
+
resumePayload: any;
|
|
156
|
+
resumePath: number[];
|
|
157
|
+
};
|
|
158
|
+
executionContext: ExecutionContext;
|
|
159
|
+
emitter: EventEmitter;
|
|
160
|
+
runtimeContext: RuntimeContext;
|
|
161
|
+
}): Promise<StepResult<any>>;
|
|
162
|
+
executeEntry({ workflowId, runId, entry, prevStep, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
163
|
+
workflowId: string;
|
|
164
|
+
runId: string;
|
|
165
|
+
entry: StepFlowEntry;
|
|
166
|
+
prevStep: StepFlowEntry;
|
|
167
|
+
stepResults: Record<string, StepResult<any>>;
|
|
168
|
+
resume?: {
|
|
169
|
+
steps: string[];
|
|
170
|
+
stepResults: Record<string, StepResult<any>>;
|
|
171
|
+
resumePayload: any;
|
|
172
|
+
resumePath: number[];
|
|
173
|
+
};
|
|
174
|
+
executionContext: ExecutionContext;
|
|
175
|
+
emitter: EventEmitter;
|
|
176
|
+
runtimeContext: RuntimeContext;
|
|
177
|
+
}): Promise<StepResult<any>>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export { DefaultExecutionEngine, ExecuteFunction, ExecutionEngine, ExecutionGraph, NewStep, StepFlowEntry, StepResult };
|