@svatah/yam-workflow
Story-as-function runner and resume
- Source:
packages/workflow· README:packages/workflow/README.md - Install:
npm install @svatah/yam-workflow - Version 0.1.0 · Apache-2.0
Exports
| Export | Kind | Signature | |
|---|---|---|---|
checkEnvironment | function | export function checkEnvironment( | Refuse a non-idempotent story in production without an explicit override. |
EnvironmentRefusal | class | export class EnvironmentRefusal extends Error | A run refused before it started (LLD §15, exit 10). |
PolicyOptions | interface | export interface PolicyOptions | |
runWorkflow | function | export async function runWorkflow( | Run one story as a function. |
storyOf | function | export function storyOf(plan: Plan, name: string): Story | The story, or a message naming the ones that exist. |
UnknownStory | class | export class UnknownStory extends Error | The plan has no story by that name (LLD §15, exit 64). |
WorkflowOptions | interface | export interface WorkflowOptions extends PolicyOptions | |
WorkflowOutcome | interface | export interface WorkflowOutcome |