flowcraft 2.6.0 → 2.7.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/dist/adapters/index.d.ts +4 -0
- package/dist/adapters/index.js +4 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/persistent-event-bus.d.ts +69 -0
- package/dist/adapters/persistent-event-bus.js +3 -0
- package/dist/adapters/persistent-event-bus.js.map +1 -0
- package/dist/analysis.d.ts +1 -1
- package/dist/chunk-3Y5O5EGB.js +3 -0
- package/dist/{chunk-NVJ3ZO3P.js.map → chunk-3Y5O5EGB.js.map} +1 -1
- package/dist/{chunk-UXIASXSG.js → chunk-4TVWI6Y6.js} +5 -5
- package/dist/{chunk-UXIASXSG.js.map → chunk-4TVWI6Y6.js.map} +1 -1
- package/dist/{chunk-CYHZ2YVH.js → chunk-6RKHCJUU.js} +8 -3
- package/dist/chunk-6RKHCJUU.js.map +1 -0
- package/dist/{chunk-MUYLRTSR.js → chunk-7EBKWATZ.js} +9 -5
- package/dist/chunk-7EBKWATZ.js.map +1 -0
- package/dist/{chunk-7FIOROIR.js → chunk-AKDL2ZX7.js} +2 -2
- package/dist/{chunk-7FIOROIR.js.map → chunk-AKDL2ZX7.js.map} +1 -1
- package/dist/chunk-ASJYJ3NF.js +46 -0
- package/dist/chunk-ASJYJ3NF.js.map +1 -0
- package/dist/{chunk-FBPY44WL.js → chunk-H4JTZYIT.js} +3 -3
- package/dist/{chunk-FBPY44WL.js.map → chunk-H4JTZYIT.js.map} +1 -1
- package/dist/chunk-HFJXYY4E.js +3 -0
- package/dist/chunk-HFJXYY4E.js.map +1 -0
- package/dist/{chunk-SEI4Z3MO.js → chunk-HXSK5P2X.js} +12 -5
- package/dist/chunk-HXSK5P2X.js.map +1 -0
- package/dist/{chunk-JLDHCI2O.js → chunk-K6ID3GRG.js} +8 -8
- package/dist/chunk-K6ID3GRG.js.map +1 -0
- package/dist/{chunk-2ISKDTSN.js → chunk-LU5SLE3P.js} +4 -4
- package/dist/{chunk-2ISKDTSN.js.map → chunk-LU5SLE3P.js.map} +1 -1
- package/dist/{chunk-N4NLAIEN.js → chunk-LWN7HOD3.js} +4 -3
- package/dist/chunk-LWN7HOD3.js.map +1 -0
- package/dist/{chunk-HAZ26F3P.js → chunk-N63S5NEG.js} +20 -11
- package/dist/chunk-N63S5NEG.js.map +1 -0
- package/dist/{chunk-G53CSLBF.js → chunk-RAZWRNAJ.js} +5 -5
- package/dist/chunk-RAZWRNAJ.js.map +1 -0
- package/dist/{chunk-6MGLU3UU.js → chunk-RF5EYEO6.js} +4 -4
- package/dist/{chunk-6MGLU3UU.js.map → chunk-RF5EYEO6.js.map} +1 -1
- package/dist/chunk-TKSSRS5U.js +39 -0
- package/dist/chunk-TKSSRS5U.js.map +1 -0
- package/dist/{chunk-XTW36KQZ.js → chunk-TTOS7NW3.js} +6 -6
- package/dist/chunk-TTOS7NW3.js.map +1 -0
- package/dist/chunk-UNORA7EM.js +103 -0
- package/dist/chunk-UNORA7EM.js.map +1 -0
- package/dist/{chunk-OPRR4TAO.js → chunk-VDVUF25G.js} +69 -17
- package/dist/chunk-VDVUF25G.js.map +1 -0
- package/dist/{chunk-5BOUGXZO.js → chunk-VSKDQVCG.js} +16 -4
- package/dist/chunk-VSKDQVCG.js.map +1 -0
- package/dist/{chunk-5XPW6YEP.js → chunk-W4IAXDO4.js} +28 -6
- package/dist/chunk-W4IAXDO4.js.map +1 -0
- package/dist/{chunk-XDI4TJHA.js → chunk-ZETQCNEF.js} +49 -5
- package/dist/chunk-ZETQCNEF.js.map +1 -0
- package/dist/container-factory.d.ts +1 -1
- package/dist/container-factory.js +7 -7
- package/dist/context.d.ts +15 -2
- package/dist/context.js +1 -1
- package/dist/error-mapper.d.ts +1 -1
- package/dist/evaluator.d.ts +1 -1
- package/dist/flow.d.ts +3 -3
- package/dist/flow.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +21 -18
- package/dist/linter.d.ts +1 -1
- package/dist/logger.d.ts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/nodes/batch-gather.d.ts +1 -1
- package/dist/nodes/batch-scatter.d.ts +1 -1
- package/dist/nodes/sleep.d.ts +1 -1
- package/dist/nodes/subflow.d.ts +1 -1
- package/dist/nodes/subflow.js +5 -5
- package/dist/nodes/wait.d.ts +1 -1
- package/dist/nodes/webhook.d.ts +1 -1
- package/dist/runtime/adapter.d.ts +3 -1
- package/dist/runtime/adapter.js +15 -15
- package/dist/runtime/execution-context.d.ts +1 -1
- package/dist/runtime/execution-context.js +3 -3
- package/dist/runtime/executors.d.ts +1 -1
- package/dist/runtime/index.d.ts +2 -1
- package/dist/runtime/index.js +17 -16
- package/dist/runtime/node-executor-factory.d.ts +1 -1
- package/dist/runtime/orchestrator.d.ts +1 -1
- package/dist/runtime/orchestrator.js +5 -5
- package/dist/runtime/orchestrators/replay.d.ts +45 -0
- package/dist/runtime/orchestrators/replay.js +3 -0
- package/dist/runtime/orchestrators/replay.js.map +1 -0
- package/dist/runtime/orchestrators/step-by-step.d.ts +1 -1
- package/dist/runtime/orchestrators/step-by-step.js +2 -2
- package/dist/runtime/orchestrators/utils.d.ts +1 -1
- package/dist/runtime/orchestrators/utils.js +1 -1
- package/dist/runtime/runtime.d.ts +1 -1
- package/dist/runtime/runtime.js +14 -14
- package/dist/runtime/scheduler.d.ts +1 -1
- package/dist/runtime/state.d.ts +1 -1
- package/dist/runtime/state.js +2 -2
- package/dist/runtime/traverser.d.ts +1 -1
- package/dist/runtime/traverser.js +1 -1
- package/dist/runtime/types.d.ts +1 -1
- package/dist/runtime/workflow-logic-handler.d.ts +2 -2
- package/dist/runtime/workflow-logic-handler.js +2 -2
- package/dist/sanitizer.d.ts +1 -1
- package/dist/sanitizer.js +1 -1
- package/dist/serializer.d.ts +1 -1
- package/dist/serializer.js +1 -1
- package/dist/testing/event-logger.d.ts +1 -1
- package/dist/testing/event-logger.js +1 -1
- package/dist/testing/index.d.ts +2 -1
- package/dist/testing/index.js +23 -20
- package/dist/testing/run-with-trace.d.ts +1 -1
- package/dist/testing/run-with-trace.js +19 -18
- package/dist/testing/stepper.d.ts +1 -1
- package/dist/testing/stepper.js +7 -7
- package/dist/{types-B-Drn84R.d.ts → types-D-dVKe4_.d.ts} +49 -6
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-5BOUGXZO.js.map +0 -1
- package/dist/chunk-5XPW6YEP.js.map +0 -1
- package/dist/chunk-CYHZ2YVH.js.map +0 -1
- package/dist/chunk-DSYAC4WB.js +0 -27
- package/dist/chunk-DSYAC4WB.js.map +0 -1
- package/dist/chunk-G53CSLBF.js.map +0 -1
- package/dist/chunk-HAZ26F3P.js.map +0 -1
- package/dist/chunk-JLDHCI2O.js.map +0 -1
- package/dist/chunk-MUYLRTSR.js.map +0 -1
- package/dist/chunk-N4NLAIEN.js.map +0 -1
- package/dist/chunk-NVJ3ZO3P.js +0 -3
- package/dist/chunk-OPRR4TAO.js.map +0 -1
- package/dist/chunk-SEI4Z3MO.js.map +0 -1
- package/dist/chunk-XDI4TJHA.js.map +0 -1
- package/dist/chunk-XTW36KQZ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-3Y5O5EGB.js';
|
|
2
|
+
export { InMemoryEventStore, PersistentEventBusAdapter } from './chunk-ASJYJ3NF.js';
|
|
3
|
+
import './chunk-HFJXYY4E.js';
|
|
4
|
+
export { ReplayOrchestrator } from './chunk-UNORA7EM.js';
|
|
2
5
|
import './chunk-NVLZFLYM.js';
|
|
3
|
-
export { BaseDistributedAdapter } from './chunk-
|
|
4
|
-
export { FlowRuntime } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
+
export { BaseDistributedAdapter } from './chunk-W4IAXDO4.js';
|
|
7
|
+
export { FlowRuntime } from './chunk-VDVUF25G.js';
|
|
8
|
+
import './chunk-HXSK5P2X.js';
|
|
6
9
|
import './chunk-DL7KVYZF.js';
|
|
7
|
-
export { ClassNodeExecutor, FunctionNodeExecutor, NodeExecutor } from './chunk-ONH7PIJZ.js';
|
|
8
10
|
import './chunk-LM4ACVHL.js';
|
|
9
|
-
import './chunk-BC4G7OM6.js';
|
|
10
|
-
import './chunk-RM677CNU.js';
|
|
11
11
|
import './chunk-HNHM3FDK.js';
|
|
12
|
-
import './chunk-
|
|
13
|
-
export { GraphTraverser } from './chunk-FBPY44WL.js';
|
|
12
|
+
import './chunk-4TVWI6Y6.js';
|
|
14
13
|
import './chunk-IDTYHLDQ.js';
|
|
15
14
|
import './chunk-I53JB2KW.js';
|
|
15
|
+
export { ClassNodeExecutor, FunctionNodeExecutor, NodeExecutor } from './chunk-ONH7PIJZ.js';
|
|
16
|
+
export { GraphTraverser } from './chunk-H4JTZYIT.js';
|
|
17
|
+
import './chunk-BC4G7OM6.js';
|
|
18
|
+
import './chunk-RM677CNU.js';
|
|
16
19
|
export { lintBlueprint } from './chunk-IKOTX22J.js';
|
|
17
|
-
export { sanitizeBlueprint } from './chunk-
|
|
20
|
+
export { sanitizeBlueprint } from './chunk-TKSSRS5U.js';
|
|
18
21
|
import './chunk-55J6XMHW.js';
|
|
19
22
|
export { analyzeBlueprint, checkForCycles, generateMermaid, generateMermaidForRun } from './chunk-ZLW4QOTS.js';
|
|
20
|
-
export { createDefaultContainer } from './chunk-
|
|
21
|
-
export { DefaultOrchestrator } from './chunk-
|
|
22
|
-
export { executeBatch, processResults } from './chunk-
|
|
23
|
-
import './chunk-
|
|
24
|
-
export { WorkflowState } from './chunk-
|
|
23
|
+
export { createDefaultContainer } from './chunk-LU5SLE3P.js';
|
|
24
|
+
export { DefaultOrchestrator } from './chunk-TTOS7NW3.js';
|
|
25
|
+
export { executeBatch, processResults } from './chunk-N63S5NEG.js';
|
|
26
|
+
import './chunk-LWN7HOD3.js';
|
|
27
|
+
export { WorkflowState } from './chunk-VSKDQVCG.js';
|
|
25
28
|
export { ConsoleLogger, NullLogger } from './chunk-4PELJWF7.js';
|
|
26
|
-
export { JsonSerializer } from './chunk-
|
|
29
|
+
export { JsonSerializer } from './chunk-6RKHCJUU.js';
|
|
27
30
|
export { DIContainer, ServiceTokens } from './chunk-WWGFIYKW.js';
|
|
28
|
-
export { AsyncContextView, Context, TrackedAsyncContext } from './chunk-
|
|
31
|
+
export { AsyncContextView, Context, TrackedAsyncContext } from './chunk-ZETQCNEF.js';
|
|
29
32
|
export { createErrorMapper } from './chunk-27STBUGG.js';
|
|
30
33
|
export { FlowcraftError } from './chunk-BCRWXTWX.js';
|
|
31
34
|
export { PropertyEvaluator, UnsafeEvaluator } from './chunk-PH2IYZHV.js';
|
|
32
|
-
export { FlowBuilder, createFlow } from './chunk-
|
|
35
|
+
export { FlowBuilder, createFlow } from './chunk-AKDL2ZX7.js';
|
|
33
36
|
export { BaseNode, isNodeClass } from './chunk-LNK7LZER.js';
|
|
34
37
|
//# sourceMappingURL=index.js.map
|
|
35
38
|
//# sourceMappingURL=index.js.map
|
package/dist/linter.d.ts
CHANGED
package/dist/logger.d.ts
CHANGED
package/dist/node.d.ts
CHANGED
package/dist/nodes/sleep.d.ts
CHANGED
package/dist/nodes/subflow.d.ts
CHANGED
package/dist/nodes/subflow.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { SubflowNode } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { SubflowNode } from '../chunk-4TVWI6Y6.js';
|
|
2
|
+
import '../chunk-H4JTZYIT.js';
|
|
3
3
|
import '../chunk-ZLW4QOTS.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-LWN7HOD3.js';
|
|
5
|
+
import '../chunk-VSKDQVCG.js';
|
|
6
|
+
import '../chunk-ZETQCNEF.js';
|
|
7
7
|
import '../chunk-BCRWXTWX.js';
|
|
8
8
|
import '../chunk-LNK7LZER.js';
|
|
9
9
|
//# sourceMappingURL=subflow.js.map
|
package/dist/nodes/wait.d.ts
CHANGED
package/dist/nodes/webhook.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as RuntimeOptions, c as FlowRuntime, D as ISerializer, y as ILogger, u as IAsyncContext, K as WorkflowResult, h as WorkflowBlueprint } from '../types-
|
|
1
|
+
import { w as RuntimeOptions, A as IEventBus, c as FlowRuntime, D as ISerializer, y as ILogger, u as IAsyncContext, K as WorkflowResult, h as WorkflowBlueprint } from '../types-D-dVKe4_.js';
|
|
2
2
|
import '../errors.js';
|
|
3
3
|
import '../container.js';
|
|
4
4
|
|
|
@@ -22,6 +22,7 @@ interface ICoordinationStore {
|
|
|
22
22
|
interface AdapterOptions {
|
|
23
23
|
runtimeOptions: RuntimeOptions<any>;
|
|
24
24
|
coordinationStore: ICoordinationStore;
|
|
25
|
+
eventBus?: IEventBus;
|
|
25
26
|
}
|
|
26
27
|
/** The data payload expected for a job in the queue. */
|
|
27
28
|
interface JobPayload {
|
|
@@ -38,6 +39,7 @@ declare abstract class BaseDistributedAdapter {
|
|
|
38
39
|
protected readonly store: ICoordinationStore;
|
|
39
40
|
protected readonly serializer: ISerializer;
|
|
40
41
|
protected readonly logger: ILogger;
|
|
42
|
+
protected readonly eventBus?: IEventBus;
|
|
41
43
|
constructor(options: AdapterOptions);
|
|
42
44
|
/**
|
|
43
45
|
* Starts the worker, which begins listening for and processing jobs from the queue.
|
package/dist/runtime/adapter.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export { BaseDistributedAdapter } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { BaseDistributedAdapter } from '../chunk-W4IAXDO4.js';
|
|
2
|
+
import '../chunk-VDVUF25G.js';
|
|
3
|
+
import '../chunk-HXSK5P2X.js';
|
|
4
4
|
import '../chunk-DL7KVYZF.js';
|
|
5
|
-
import '../chunk-ONH7PIJZ.js';
|
|
6
5
|
import '../chunk-LM4ACVHL.js';
|
|
7
|
-
import '../chunk-BC4G7OM6.js';
|
|
8
|
-
import '../chunk-RM677CNU.js';
|
|
9
6
|
import '../chunk-HNHM3FDK.js';
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-FBPY44WL.js';
|
|
7
|
+
import '../chunk-4TVWI6Y6.js';
|
|
12
8
|
import '../chunk-IDTYHLDQ.js';
|
|
13
9
|
import '../chunk-I53JB2KW.js';
|
|
14
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-ONH7PIJZ.js';
|
|
11
|
+
import '../chunk-H4JTZYIT.js';
|
|
12
|
+
import '../chunk-BC4G7OM6.js';
|
|
13
|
+
import '../chunk-RM677CNU.js';
|
|
14
|
+
import '../chunk-TKSSRS5U.js';
|
|
15
15
|
import '../chunk-ZLW4QOTS.js';
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
19
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-TTOS7NW3.js';
|
|
17
|
+
import '../chunk-N63S5NEG.js';
|
|
18
|
+
import '../chunk-LWN7HOD3.js';
|
|
19
|
+
import '../chunk-VSKDQVCG.js';
|
|
20
20
|
import '../chunk-4PELJWF7.js';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-6RKHCJUU.js';
|
|
22
22
|
import '../chunk-WWGFIYKW.js';
|
|
23
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-ZETQCNEF.js';
|
|
24
24
|
import '../chunk-BCRWXTWX.js';
|
|
25
25
|
import '../chunk-PH2IYZHV.js';
|
|
26
26
|
import '../chunk-LNK7LZER.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ExecutionContext } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { ExecutionContext } from '../chunk-LWN7HOD3.js';
|
|
2
|
+
import '../chunk-VSKDQVCG.js';
|
|
3
|
+
import '../chunk-ZETQCNEF.js';
|
|
4
4
|
import '../chunk-BCRWXTWX.js';
|
|
5
5
|
//# sourceMappingURL=execution-context.js.map
|
|
6
6
|
//# sourceMappingURL=execution-context.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../errors.js';
|
|
2
|
-
export { C as ClassNodeExecutor, E as ExecutionStrategy, F as FunctionNodeExecutor, N as NodeExecutionResult, b as NodeExecutor, a as NodeExecutorConfig } from '../types-
|
|
2
|
+
export { C as ClassNodeExecutor, E as ExecutionStrategy, F as FunctionNodeExecutor, N as NodeExecutionResult, b as NodeExecutor, a as NodeExecutorConfig } from '../types-D-dVKe4_.js';
|
|
3
3
|
import '../container.js';
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { AdapterOptions, BaseDistributedAdapter, ICoordinationStore, JobPayload } from './adapter.js';
|
|
2
|
-
export { C as ClassNodeExecutor, e as ExecutionServices, E as ExecutionStrategy, c as FlowRuntime, F as FunctionNodeExecutor, G as GraphTraverser, I as IOrchestrator, f as IRuntime, N as NodeExecutionResult, b as NodeExecutor, a as NodeExecutorConfig, d as NodeExecutorFactory, R as ReadyNode, W as WorkflowState } from '../types-
|
|
2
|
+
export { C as ClassNodeExecutor, e as ExecutionServices, E as ExecutionStrategy, c as FlowRuntime, F as FunctionNodeExecutor, G as GraphTraverser, I as IOrchestrator, f as IRuntime, N as NodeExecutionResult, b as NodeExecutor, a as NodeExecutorConfig, d as NodeExecutorFactory, R as ReadyNode, W as WorkflowState } from '../types-D-dVKe4_.js';
|
|
3
3
|
export { DefaultOrchestrator } from './orchestrator.js';
|
|
4
|
+
export { ReplayOrchestrator } from './orchestrators/replay.js';
|
|
4
5
|
export { executeBatch, processResults } from './orchestrators/utils.js';
|
|
5
6
|
import '../errors.js';
|
|
6
7
|
import '../container.js';
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import '../chunk-
|
|
1
|
+
import '../chunk-HFJXYY4E.js';
|
|
2
|
+
export { ReplayOrchestrator } from '../chunk-UNORA7EM.js';
|
|
2
3
|
import '../chunk-NVLZFLYM.js';
|
|
3
|
-
export { BaseDistributedAdapter } from '../chunk-
|
|
4
|
-
export { FlowRuntime } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
export { BaseDistributedAdapter } from '../chunk-W4IAXDO4.js';
|
|
5
|
+
export { FlowRuntime } from '../chunk-VDVUF25G.js';
|
|
6
|
+
import '../chunk-HXSK5P2X.js';
|
|
6
7
|
import '../chunk-DL7KVYZF.js';
|
|
7
|
-
export { ClassNodeExecutor, FunctionNodeExecutor, NodeExecutor } from '../chunk-ONH7PIJZ.js';
|
|
8
8
|
import '../chunk-LM4ACVHL.js';
|
|
9
|
-
import '../chunk-BC4G7OM6.js';
|
|
10
|
-
import '../chunk-RM677CNU.js';
|
|
11
9
|
import '../chunk-HNHM3FDK.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
export { GraphTraverser } from '../chunk-FBPY44WL.js';
|
|
10
|
+
import '../chunk-4TVWI6Y6.js';
|
|
14
11
|
import '../chunk-IDTYHLDQ.js';
|
|
15
12
|
import '../chunk-I53JB2KW.js';
|
|
16
|
-
|
|
13
|
+
export { ClassNodeExecutor, FunctionNodeExecutor, NodeExecutor } from '../chunk-ONH7PIJZ.js';
|
|
14
|
+
export { GraphTraverser } from '../chunk-H4JTZYIT.js';
|
|
15
|
+
import '../chunk-BC4G7OM6.js';
|
|
16
|
+
import '../chunk-RM677CNU.js';
|
|
17
|
+
import '../chunk-TKSSRS5U.js';
|
|
17
18
|
import '../chunk-ZLW4QOTS.js';
|
|
18
|
-
export { DefaultOrchestrator } from '../chunk-
|
|
19
|
-
export { executeBatch, processResults } from '../chunk-
|
|
20
|
-
import '../chunk-
|
|
21
|
-
export { WorkflowState } from '../chunk-
|
|
19
|
+
export { DefaultOrchestrator } from '../chunk-TTOS7NW3.js';
|
|
20
|
+
export { executeBatch, processResults } from '../chunk-N63S5NEG.js';
|
|
21
|
+
import '../chunk-LWN7HOD3.js';
|
|
22
|
+
export { WorkflowState } from '../chunk-VSKDQVCG.js';
|
|
22
23
|
import '../chunk-4PELJWF7.js';
|
|
23
|
-
import '../chunk-
|
|
24
|
+
import '../chunk-6RKHCJUU.js';
|
|
24
25
|
import '../chunk-WWGFIYKW.js';
|
|
25
|
-
import '../chunk-
|
|
26
|
+
import '../chunk-ZETQCNEF.js';
|
|
26
27
|
import '../chunk-BCRWXTWX.js';
|
|
27
28
|
import '../chunk-PH2IYZHV.js';
|
|
28
29
|
import '../chunk-LNK7LZER.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IOrchestrator, L as ExecutionContext, G as GraphTraverser, K as WorkflowResult } from '../types-
|
|
1
|
+
import { I as IOrchestrator, L as ExecutionContext, G as GraphTraverser, K as WorkflowResult } from '../types-D-dVKe4_.js';
|
|
2
2
|
import '../errors.js';
|
|
3
3
|
import '../container.js';
|
|
4
4
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { DefaultOrchestrator } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
export { DefaultOrchestrator } from '../chunk-TTOS7NW3.js';
|
|
2
|
+
import '../chunk-N63S5NEG.js';
|
|
3
|
+
import '../chunk-LWN7HOD3.js';
|
|
4
|
+
import '../chunk-VSKDQVCG.js';
|
|
5
|
+
import '../chunk-ZETQCNEF.js';
|
|
6
6
|
import '../chunk-BCRWXTWX.js';
|
|
7
7
|
//# sourceMappingURL=orchestrator.js.map
|
|
8
8
|
//# sourceMappingURL=orchestrator.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { I as IOrchestrator, z as FlowcraftEvent, L as ExecutionContext, G as GraphTraverser, K as WorkflowResult } from '../../types-D-dVKe4_.js';
|
|
2
|
+
import '../../errors.js';
|
|
3
|
+
import '../../container.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* An orchestrator that replays a pre-recorded sequence of workflow events
|
|
7
|
+
* to reconstruct the workflow state without executing any node logic.
|
|
8
|
+
*
|
|
9
|
+
* This enables time-travel debugging by allowing developers to inspect
|
|
10
|
+
* the exact state of a workflow at any point in its execution history.
|
|
11
|
+
*/
|
|
12
|
+
declare class ReplayOrchestrator implements IOrchestrator {
|
|
13
|
+
private events;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new ReplayOrchestrator with a sequence of recorded workflow events.
|
|
16
|
+
*
|
|
17
|
+
* @param events - Array of FlowcraftEvent objects representing the recorded workflow execution
|
|
18
|
+
*/
|
|
19
|
+
constructor(events: FlowcraftEvent[]);
|
|
20
|
+
/**
|
|
21
|
+
* Replays the recorded workflow events to reconstruct the workflow state.
|
|
22
|
+
*
|
|
23
|
+
* This method filters events for the specific execution, applies each event in sequence
|
|
24
|
+
* to rebuild the context state, and returns the final reconstructed workflow result.
|
|
25
|
+
* Replayed executions always have a "completed" status since they reconstruct the final state.
|
|
26
|
+
*
|
|
27
|
+
* @param context - The execution context containing state and services
|
|
28
|
+
* @param _traverser - Graph traverser (unused in replay mode)
|
|
29
|
+
* @returns Promise resolving to the reconstructed workflow result
|
|
30
|
+
*/
|
|
31
|
+
run(context: ExecutionContext<any, any>, _traverser: GraphTraverser): Promise<WorkflowResult<any>>;
|
|
32
|
+
/**
|
|
33
|
+
* Applies a single workflow event to reconstruct the execution state.
|
|
34
|
+
*
|
|
35
|
+
* This method handles different event types by updating the workflow state accordingly,
|
|
36
|
+
* including node completions, context changes, errors, fallbacks, and workflow control events.
|
|
37
|
+
*
|
|
38
|
+
* @param event - The workflow event to apply
|
|
39
|
+
* @param context - The execution context to update
|
|
40
|
+
* @param fallbackMap - Map tracking fallback node relationships (fallbackNodeId -> originalNodeId)
|
|
41
|
+
*/
|
|
42
|
+
private applyEvent;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { ReplayOrchestrator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"replay.js"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IOrchestrator, L as ExecutionContext, G as GraphTraverser, K as WorkflowResult } from '../../types-
|
|
1
|
+
import { I as IOrchestrator, L as ExecutionContext, G as GraphTraverser, K as WorkflowResult } from '../../types-D-dVKe4_.js';
|
|
2
2
|
import '../../errors.js';
|
|
3
3
|
import '../../container.js';
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { StepByStepOrchestrator } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { StepByStepOrchestrator } from '../../chunk-RAZWRNAJ.js';
|
|
2
|
+
import '../../chunk-N63S5NEG.js';
|
|
3
3
|
import '../../chunk-BCRWXTWX.js';
|
|
4
4
|
//# sourceMappingURL=step-by-step.js.map
|
|
5
5
|
//# sourceMappingURL=step-by-step.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as WorkflowBlueprint, W as WorkflowState, N as NodeExecutionResult, G as GraphTraverser } from '../../types-
|
|
1
|
+
import { h as WorkflowBlueprint, W as WorkflowState, N as NodeExecutionResult, G as GraphTraverser } from '../../types-D-dVKe4_.js';
|
|
2
2
|
import '../../errors.js';
|
|
3
3
|
import '../../container.js';
|
|
4
4
|
|
package/dist/runtime/runtime.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { FlowRuntime } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { FlowRuntime } from '../chunk-VDVUF25G.js';
|
|
2
|
+
import '../chunk-HXSK5P2X.js';
|
|
3
3
|
import '../chunk-DL7KVYZF.js';
|
|
4
|
-
import '../chunk-ONH7PIJZ.js';
|
|
5
4
|
import '../chunk-LM4ACVHL.js';
|
|
6
|
-
import '../chunk-BC4G7OM6.js';
|
|
7
|
-
import '../chunk-RM677CNU.js';
|
|
8
5
|
import '../chunk-HNHM3FDK.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-FBPY44WL.js';
|
|
6
|
+
import '../chunk-4TVWI6Y6.js';
|
|
11
7
|
import '../chunk-IDTYHLDQ.js';
|
|
12
8
|
import '../chunk-I53JB2KW.js';
|
|
13
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-ONH7PIJZ.js';
|
|
10
|
+
import '../chunk-H4JTZYIT.js';
|
|
11
|
+
import '../chunk-BC4G7OM6.js';
|
|
12
|
+
import '../chunk-RM677CNU.js';
|
|
13
|
+
import '../chunk-TKSSRS5U.js';
|
|
14
14
|
import '../chunk-ZLW4QOTS.js';
|
|
15
|
-
import '../chunk-
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-TTOS7NW3.js';
|
|
16
|
+
import '../chunk-N63S5NEG.js';
|
|
17
|
+
import '../chunk-LWN7HOD3.js';
|
|
18
|
+
import '../chunk-VSKDQVCG.js';
|
|
19
19
|
import '../chunk-4PELJWF7.js';
|
|
20
|
-
import '../chunk-
|
|
20
|
+
import '../chunk-6RKHCJUU.js';
|
|
21
21
|
import '../chunk-WWGFIYKW.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-ZETQCNEF.js';
|
|
23
23
|
import '../chunk-BCRWXTWX.js';
|
|
24
24
|
import '../chunk-PH2IYZHV.js';
|
|
25
25
|
import '../chunk-LNK7LZER.js';
|
package/dist/runtime/state.d.ts
CHANGED
package/dist/runtime/state.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { WorkflowState } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { WorkflowState } from '../chunk-VSKDQVCG.js';
|
|
2
|
+
import '../chunk-ZETQCNEF.js';
|
|
3
3
|
import '../chunk-BCRWXTWX.js';
|
|
4
4
|
//# sourceMappingURL=state.js.map
|
|
5
5
|
//# sourceMappingURL=state.js.map
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { e as ExecutionServices, I as IOrchestrator, f as IRuntime, N as NodeExecutionResult, b as NodeExecutor, d as NodeExecutorFactory } from '../types-
|
|
1
|
+
export { e as ExecutionServices, I as IOrchestrator, f as IRuntime, N as NodeExecutionResult, b as NodeExecutor, d as NodeExecutorFactory } from '../types-D-dVKe4_.js';
|
|
2
2
|
import '../errors.js';
|
|
3
3
|
import '../container.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as IEvaluator, A as IEventBus, h as WorkflowBlueprint, m as NodeResult, s as ContextImplementation, j as NodeDefinition, k as EdgeDefinition } from '../types-
|
|
1
|
+
import { x as IEvaluator, A as IEventBus, h as WorkflowBlueprint, m as NodeResult, s as ContextImplementation, j as NodeDefinition, k as EdgeDefinition } from '../types-D-dVKe4_.js';
|
|
2
2
|
import '../errors.js';
|
|
3
3
|
import '../container.js';
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ declare class WorkflowLogicHandler {
|
|
|
10
10
|
node: NodeDefinition;
|
|
11
11
|
edge: EdgeDefinition;
|
|
12
12
|
}[]>;
|
|
13
|
-
applyEdgeTransform(edge: EdgeDefinition, sourceResult: NodeResult<any, any>, targetNode: NodeDefinition, context: ContextImplementation<any>, allPredecessors?: Map<string, Set<string
|
|
13
|
+
applyEdgeTransform(edge: EdgeDefinition, sourceResult: NodeResult<any, any>, targetNode: NodeDefinition, context: ContextImplementation<any>, allPredecessors?: Map<string, Set<string>>, executionId?: string): Promise<void>;
|
|
14
14
|
resolveNodeInput(nodeId: string, blueprint: WorkflowBlueprint, context: ContextImplementation<any>): Promise<any>;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { WorkflowLogicHandler } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { WorkflowLogicHandler } from '../chunk-HXSK5P2X.js';
|
|
2
|
+
import '../chunk-ZETQCNEF.js';
|
|
3
3
|
import '../chunk-BCRWXTWX.js';
|
|
4
4
|
//# sourceMappingURL=workflow-logic-handler.js.map
|
|
5
5
|
//# sourceMappingURL=workflow-logic-handler.js.map
|
package/dist/sanitizer.d.ts
CHANGED
package/dist/sanitizer.js
CHANGED
package/dist/serializer.d.ts
CHANGED
package/dist/serializer.js
CHANGED
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
export { IEventStore, InMemoryEventStore, PersistentEventBusAdapter } from '../adapters/persistent-event-bus.js';
|
|
1
2
|
export { InMemoryEventLogger } from './event-logger.js';
|
|
2
3
|
export { runWithTrace } from './run-with-trace.js';
|
|
3
4
|
export { IWorkflowStepper, createStepper } from './stepper.js';
|
|
4
|
-
import '../types-
|
|
5
|
+
import '../types-D-dVKe4_.js';
|
|
5
6
|
import '../errors.js';
|
|
6
7
|
import '../container.js';
|