Module itinera/step

Steps: the work of a workflow, what a step is called, its attempts, its outcomes, and the reasons it gives.

import assert from "node:assert/strict";
import { type Outcome, Step, step } from "itinera/step";

@step()
class Ship extends Step {
override run(): Outcome {
return this.succeed();
}
}

assert.deepEqual(new Ship().run(), { kind: "success" });
Attempt
RescueStep
Step
Fail
FromFailureOptions
Reason
RescueStepBuilder
RescueStepClass
Skip
StepBuilder
StepClass
StepDescriptor
StepOptions
StepReporter
Success
FromFailure
GivenReason
Outcome
RescueOutcome
StepName
WithoutStaticData
attempt
error
failureReason
fromRescuedStep
input
rescueStep
step
stepName
stepReporter