flowcraft 2.6.1 → 2.7.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/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-2TSADFQX.js +46 -0
- package/dist/chunk-2TSADFQX.js.map +1 -0
- package/dist/chunk-3Y5O5EGB.js +3 -0
- package/dist/{chunk-NVJ3ZO3P.js.map → chunk-3Y5O5EGB.js.map} +1 -1
- package/dist/{chunk-6X5BERRF.js → chunk-6RKHCJUU.js} +2 -2
- package/dist/{chunk-6X5BERRF.js.map → chunk-6RKHCJUU.js.map} +1 -1
- package/dist/{chunk-MUYLRTSR.js → chunk-7EBKWATZ.js} +9 -5
- package/dist/chunk-7EBKWATZ.js.map +1 -0
- package/dist/{chunk-BTCZU2DJ.js → chunk-7EMUOH77.js} +4 -4
- package/dist/{chunk-BTCZU2DJ.js.map → chunk-7EMUOH77.js.map} +1 -1
- package/dist/{chunk-QSQ2BSGG.js → chunk-7M6FHFHP.js} +4 -4
- package/dist/{chunk-QSQ2BSGG.js.map → chunk-7M6FHFHP.js.map} +1 -1
- package/dist/{chunk-IWTFVGMK.js → chunk-AKDL2ZX7.js} +2 -2
- package/dist/{chunk-IWTFVGMK.js.map → chunk-AKDL2ZX7.js.map} +1 -1
- package/dist/{chunk-2YLGY3R2.js → chunk-BCMR7Y4U.js} +7 -7
- package/dist/chunk-BCMR7Y4U.js.map +1 -0
- package/dist/{chunk-34LDT5EG.js → chunk-BEHVGFIM.js} +85 -34
- package/dist/chunk-BEHVGFIM.js.map +1 -0
- package/dist/{chunk-3YV6X6VQ.js → chunk-DV2CXHOY.js} +5 -5
- package/dist/chunk-DV2CXHOY.js.map +1 -0
- package/dist/chunk-HFJXYY4E.js +3 -0
- package/dist/chunk-HFJXYY4E.js.map +1 -0
- package/dist/{chunk-VB7VNXR7.js → chunk-HXSK5P2X.js} +11 -5
- package/dist/chunk-HXSK5P2X.js.map +1 -0
- package/dist/{chunk-N4NLAIEN.js → chunk-L3MX5MTA.js} +4 -3
- package/dist/chunk-L3MX5MTA.js.map +1 -0
- package/dist/{chunk-5BOUGXZO.js → chunk-L46TQXCV.js} +22 -6
- package/dist/chunk-L46TQXCV.js.map +1 -0
- package/dist/{chunk-SF5GQHUU.js → chunk-N63S5NEG.js} +10 -3
- package/dist/chunk-N63S5NEG.js.map +1 -0
- package/dist/{chunk-C3ZT7FNO.js → chunk-RAZWRNAJ.js} +5 -5
- package/dist/chunk-RAZWRNAJ.js.map +1 -0
- package/dist/chunk-TKSSRS5U.js +39 -0
- package/dist/chunk-TKSSRS5U.js.map +1 -0
- package/dist/{chunk-O3QJFRXS.js → chunk-U7DKCIWT.js} +37 -19
- package/dist/chunk-U7DKCIWT.js.map +1 -0
- package/dist/chunk-UNORA7EM.js +103 -0
- package/dist/chunk-UNORA7EM.js.map +1 -0
- package/dist/{chunk-NQORJ53O.js → chunk-XZZWIJ4G.js} +4 -4
- package/dist/{chunk-NQORJ53O.js.map → chunk-XZZWIJ4G.js.map} +1 -1
- 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 +18 -15
- 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 +4 -4
- 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 +12 -12
- 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 +14 -13
- 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 +11 -11
- 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/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 -2
- 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 +20 -17
- package/dist/testing/run-with-trace.d.ts +1 -1
- package/dist/testing/run-with-trace.js +16 -15
- package/dist/testing/stepper.d.ts +1 -1
- package/dist/testing/stepper.js +6 -6
- package/dist/{types-Cv5JcMwI.d.ts → types-CKhffqyb.d.ts} +49 -6
- package/dist/types.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunk-2YLGY3R2.js.map +0 -1
- package/dist/chunk-34LDT5EG.js.map +0 -1
- package/dist/chunk-3YV6X6VQ.js.map +0 -1
- package/dist/chunk-5BOUGXZO.js.map +0 -1
- package/dist/chunk-C3ZT7FNO.js.map +0 -1
- package/dist/chunk-HLN72CCU.js +0 -43
- package/dist/chunk-HLN72CCU.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-O3QJFRXS.js.map +0 -1
- package/dist/chunk-SF5GQHUU.js.map +0 -1
- package/dist/chunk-VB7VNXR7.js.map +0 -1
- package/dist/chunk-XDI4TJHA.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
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-U7DKCIWT.js';
|
|
5
|
+
export { FlowRuntime } from './chunk-BEHVGFIM.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
|
+
export { ClassNodeExecutor, FunctionNodeExecutor, NodeExecutor } from './chunk-ONH7PIJZ.js';
|
|
10
|
+
import './chunk-3Y5O5EGB.js';
|
|
11
|
+
export { InMemoryEventStore, PersistentEventBusAdapter } from './chunk-2TSADFQX.js';
|
|
9
12
|
import './chunk-BC4G7OM6.js';
|
|
10
13
|
import './chunk-RM677CNU.js';
|
|
11
14
|
import './chunk-HNHM3FDK.js';
|
|
12
|
-
import './chunk-
|
|
15
|
+
import './chunk-7EMUOH77.js';
|
|
13
16
|
export { GraphTraverser } from './chunk-H4JTZYIT.js';
|
|
14
17
|
import './chunk-IDTYHLDQ.js';
|
|
15
18
|
import './chunk-I53JB2KW.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-7M6FHFHP.js';
|
|
24
|
+
export { DefaultOrchestrator } from './chunk-DV2CXHOY.js';
|
|
25
|
+
export { executeBatch, processResults } from './chunk-N63S5NEG.js';
|
|
26
|
+
import './chunk-L3MX5MTA.js';
|
|
27
|
+
export { WorkflowState } from './chunk-L46TQXCV.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-
|
|
1
|
+
export { SubflowNode } from '../chunk-7EMUOH77.js';
|
|
2
2
|
import '../chunk-H4JTZYIT.js';
|
|
3
3
|
import '../chunk-ZLW4QOTS.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-L3MX5MTA.js';
|
|
5
|
+
import '../chunk-L46TQXCV.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-CKhffqyb.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-U7DKCIWT.js';
|
|
2
|
+
import '../chunk-BEHVGFIM.js';
|
|
3
|
+
import '../chunk-HXSK5P2X.js';
|
|
4
4
|
import '../chunk-DL7KVYZF.js';
|
|
5
|
-
import '../chunk-ONH7PIJZ.js';
|
|
6
5
|
import '../chunk-LM4ACVHL.js';
|
|
6
|
+
import '../chunk-ONH7PIJZ.js';
|
|
7
7
|
import '../chunk-BC4G7OM6.js';
|
|
8
8
|
import '../chunk-RM677CNU.js';
|
|
9
9
|
import '../chunk-HNHM3FDK.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-7EMUOH77.js';
|
|
11
11
|
import '../chunk-H4JTZYIT.js';
|
|
12
12
|
import '../chunk-IDTYHLDQ.js';
|
|
13
13
|
import '../chunk-I53JB2KW.js';
|
|
14
|
-
import '../chunk-
|
|
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-DV2CXHOY.js';
|
|
17
|
+
import '../chunk-N63S5NEG.js';
|
|
18
|
+
import '../chunk-L3MX5MTA.js';
|
|
19
|
+
import '../chunk-L46TQXCV.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-L3MX5MTA.js';
|
|
2
|
+
import '../chunk-L46TQXCV.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-CKhffqyb.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-CKhffqyb.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-U7DKCIWT.js';
|
|
5
|
+
export { FlowRuntime } from '../chunk-BEHVGFIM.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
|
+
export { ClassNodeExecutor, FunctionNodeExecutor, NodeExecutor } from '../chunk-ONH7PIJZ.js';
|
|
9
10
|
import '../chunk-BC4G7OM6.js';
|
|
10
11
|
import '../chunk-RM677CNU.js';
|
|
11
12
|
import '../chunk-HNHM3FDK.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-7EMUOH77.js';
|
|
13
14
|
export { GraphTraverser } from '../chunk-H4JTZYIT.js';
|
|
14
15
|
import '../chunk-IDTYHLDQ.js';
|
|
15
16
|
import '../chunk-I53JB2KW.js';
|
|
16
|
-
import '../chunk-
|
|
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-DV2CXHOY.js';
|
|
20
|
+
export { executeBatch, processResults } from '../chunk-N63S5NEG.js';
|
|
21
|
+
import '../chunk-L3MX5MTA.js';
|
|
22
|
+
export { WorkflowState } from '../chunk-L46TQXCV.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-CKhffqyb.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-DV2CXHOY.js';
|
|
2
|
+
import '../chunk-N63S5NEG.js';
|
|
3
|
+
import '../chunk-L3MX5MTA.js';
|
|
4
|
+
import '../chunk-L46TQXCV.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-CKhffqyb.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-CKhffqyb.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-CKhffqyb.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-BEHVGFIM.js';
|
|
2
|
+
import '../chunk-HXSK5P2X.js';
|
|
3
3
|
import '../chunk-DL7KVYZF.js';
|
|
4
|
-
import '../chunk-ONH7PIJZ.js';
|
|
5
4
|
import '../chunk-LM4ACVHL.js';
|
|
5
|
+
import '../chunk-ONH7PIJZ.js';
|
|
6
6
|
import '../chunk-BC4G7OM6.js';
|
|
7
7
|
import '../chunk-RM677CNU.js';
|
|
8
8
|
import '../chunk-HNHM3FDK.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-7EMUOH77.js';
|
|
10
10
|
import '../chunk-H4JTZYIT.js';
|
|
11
11
|
import '../chunk-IDTYHLDQ.js';
|
|
12
12
|
import '../chunk-I53JB2KW.js';
|
|
13
|
-
import '../chunk-
|
|
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-DV2CXHOY.js';
|
|
16
|
+
import '../chunk-N63S5NEG.js';
|
|
17
|
+
import '../chunk-L3MX5MTA.js';
|
|
18
|
+
import '../chunk-L46TQXCV.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-L46TQXCV.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-CKhffqyb.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-CKhffqyb.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as WorkflowBlueprint } from './types-
|
|
1
|
+
import { h as WorkflowBlueprint } from './types-CKhffqyb.js';
|
|
2
2
|
import './errors.js';
|
|
3
3
|
import './container.js';
|
|
4
4
|
|
|
@@ -6,7 +6,6 @@ import './container.js';
|
|
|
6
6
|
* Sanitizes a raw workflow blueprint by removing extra properties
|
|
7
7
|
* added by UI tools (e.g., position, style) and keeping only the
|
|
8
8
|
* properties defined in NodeDefinition and EdgeDefinition.
|
|
9
|
-
* Also prevents prototype pollution attacks.
|
|
10
9
|
*/
|
|
11
10
|
declare function sanitizeBlueprint(raw: any): WorkflowBlueprint;
|
|
12
11
|
|
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-CKhffqyb.js';
|
|
5
6
|
import '../errors.js';
|
|
6
7
|
import '../container.js';
|
package/dist/testing/index.js
CHANGED
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
export { runWithTrace } from '../chunk-
|
|
2
|
-
export { InMemoryEventLogger } from '../chunk-
|
|
3
|
-
export { createStepper } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
export { runWithTrace } from '../chunk-XZZWIJ4G.js';
|
|
2
|
+
export { InMemoryEventLogger } from '../chunk-7EBKWATZ.js';
|
|
3
|
+
export { createStepper } from '../chunk-BCMR7Y4U.js';
|
|
4
|
+
import '../chunk-RAZWRNAJ.js';
|
|
5
|
+
import '../chunk-HFJXYY4E.js';
|
|
6
|
+
import '../chunk-UNORA7EM.js';
|
|
6
7
|
import '../chunk-NVLZFLYM.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-U7DKCIWT.js';
|
|
9
|
+
import '../chunk-BEHVGFIM.js';
|
|
10
|
+
import '../chunk-HXSK5P2X.js';
|
|
10
11
|
import '../chunk-DL7KVYZF.js';
|
|
11
|
-
import '../chunk-ONH7PIJZ.js';
|
|
12
12
|
import '../chunk-LM4ACVHL.js';
|
|
13
|
+
import '../chunk-ONH7PIJZ.js';
|
|
14
|
+
import '../chunk-3Y5O5EGB.js';
|
|
15
|
+
export { InMemoryEventStore, PersistentEventBusAdapter } from '../chunk-2TSADFQX.js';
|
|
13
16
|
import '../chunk-BC4G7OM6.js';
|
|
14
17
|
import '../chunk-RM677CNU.js';
|
|
15
18
|
import '../chunk-HNHM3FDK.js';
|
|
16
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-7EMUOH77.js';
|
|
17
20
|
import '../chunk-H4JTZYIT.js';
|
|
18
21
|
import '../chunk-IDTYHLDQ.js';
|
|
19
22
|
import '../chunk-I53JB2KW.js';
|
|
20
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-TKSSRS5U.js';
|
|
21
24
|
import '../chunk-ZLW4QOTS.js';
|
|
22
|
-
import '../chunk-
|
|
23
|
-
import '../chunk-
|
|
24
|
-
import '../chunk-
|
|
25
|
-
import '../chunk-
|
|
25
|
+
import '../chunk-DV2CXHOY.js';
|
|
26
|
+
import '../chunk-N63S5NEG.js';
|
|
27
|
+
import '../chunk-L3MX5MTA.js';
|
|
28
|
+
import '../chunk-L46TQXCV.js';
|
|
26
29
|
import '../chunk-4PELJWF7.js';
|
|
27
|
-
import '../chunk-
|
|
30
|
+
import '../chunk-6RKHCJUU.js';
|
|
28
31
|
import '../chunk-WWGFIYKW.js';
|
|
29
|
-
import '../chunk-
|
|
32
|
+
import '../chunk-ZETQCNEF.js';
|
|
30
33
|
import '../chunk-BCRWXTWX.js';
|
|
31
34
|
import '../chunk-PH2IYZHV.js';
|
|
32
35
|
import '../chunk-LNK7LZER.js';
|