@qaick/executor 0.1.0-alpha.3 → 0.2.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.
@@ -1,4 +1,4 @@
1
- import type { ActionExecutor, ControlCommand, ExecutionControlState, Executor, ExecutorConfiguration, ExecutorEvent, ExecutorRequest, ExecutorResult, ExecutorRun } from './types.js';
1
+ import type { ActReplayTarget, ActReplayHandle, OperationReplayHandle, ActionExecutor, ControlCommand, ExecutionControlState, Executor, ExecutorConfiguration, ExecutorEvent, ExecutorRequest, ExecutorResult, ExecutorRun } from './types.js';
2
2
  export declare function createExecutor(configuration?: ExecutorConfiguration): Executor;
3
3
  export declare class DefaultExecutor implements Executor {
4
4
  private readonly runs;
@@ -7,23 +7,36 @@ export declare class DefaultExecutor implements Executor {
7
7
  constructor(configuration?: ExecutorConfiguration);
8
8
  registerActionExecutor(executor: ActionExecutor): void;
9
9
  execute(request: ExecutorRequest): Promise<ExecutorRun>;
10
+ private startRun;
10
11
  cancel(requestId: string): Promise<void>;
11
12
  control(requestId: string, command: ControlCommand): Promise<void>;
12
13
  controlState(requestId: string): ExecutionControlState | undefined;
13
14
  events(requestId: string): AsyncIterable<ExecutorEvent>;
14
15
  result(requestId: string): Promise<ExecutorResult>;
15
- retryAction(requestId: string, stepId: string, invocationPath?: string[]): Promise<void>;
16
- retryOperation(requestId: string, stepId: string, invocationPath?: string[]): Promise<void>;
17
- runFromHere(requestId: string, stepId: string, invocationPath?: string[]): Promise<ExecutorRun | undefined>;
16
+ private replayTarget;
17
+ retryAction(requestId: string, target: ActReplayTarget): Promise<ActReplayHandle>;
18
+ private replayEvents;
19
+ private emitReplay;
20
+ private replayAct;
21
+ retryOperation(requestId: string, target: ActReplayTarget): Promise<OperationReplayHandle>;
22
+ private replayOperation;
23
+ runFromHere(sourceRequestId: string, target: ActReplayTarget): Promise<ExecutorRun>;
18
24
  private run;
19
25
  private executeProject;
20
26
  private executeFlow;
21
27
  private executeStep;
22
28
  private executeControl;
29
+ private resolveBindings;
30
+ private resolveOperand;
31
+ private evaluateCondition;
32
+ private capture;
33
+ private captureExternalEvidence;
34
+ private assertActive;
23
35
  private executeAction;
24
36
  private boundary;
25
37
  private pauseAtBoundary;
26
38
  private emit;
39
+ private emitReplayOccurrence;
27
40
  private finish;
28
41
  private baseResult;
29
42
  private failure;