jido-kit
Version:
Helper library for the Jido CLI. Includes types and utilities to write workflows, steps, and plugins with better developer experience.
22 lines (21 loc) • 398 B
TypeScript
export type Hook = () => void | Promise<void>;
export type Plugin = {
onStart?: Hook;
onSuccess?: Hook;
onFailure?: Hook;
};
export type Step = {
run: string;
onStart?: Hook;
onSuccess?: Hook;
onFailure?: Hook;
plugins?: Plugin[];
};
export type Flow = {
name: string;
description?: string;
steps: Step[];
};
export type Config = {
flows: Flow[];
};