UNPKG

@workflow-manager/runner

Version:

CLI runner for in-memory and markdown workflow orchestration using ATEP-like envelopes

6 lines (5 loc) 829 B
import type { ApprovalPreview, ApprovalDecisionPayload, InputEnvelope, OutputEnvelope, RunOptions, RunResult, StepDefinition, StepExecutionHooks, ValidationMode, WorkflowDefinition } from "./types.js"; export declare function canUseInteractiveConfirmation(step: StepDefinition): boolean; export declare function promptForApprovalDecision(stepKey: string, reason: string, validation: ValidationMode, preview: ApprovalPreview | null, actor: string, signal?: AbortSignal): Promise<ApprovalDecisionPayload | null>; export declare function executeStep(step: StepDefinition, input: InputEnvelope, attempt: number, workflow: WorkflowDefinition, workflowFilePath: string, hooks?: StepExecutionHooks): Promise<OutputEnvelope>; export declare function runWorkflow(definition: WorkflowDefinition, options?: RunOptions): Promise<RunResult>;