UNPKG

arvo-event-handler

Version:

A complete set of orthogonal event handler and orchestration primitives for Arvo based applications, featuring declarative state machines (XState), imperative resumables for agentic workflows, contract-based routing, OpenTelemetry observability, and in-me

15 lines (14 loc) 480 B
import type { ArvoEvent } from 'arvo-core'; import type { Snapshot } from 'xstate'; import type ArvoMachine from '../ArvoMachine'; import type { EnqueueArvoEventActionParam } from '../ArvoMachine/types'; export type ExecuteMachineInput = { machine: ArvoMachine<any, any, any, any, any>; state: Snapshot<any> | null; event: ArvoEvent; }; export type ExecuteMachineOutput = { state: Snapshot<any>; events: EnqueueArvoEventActionParam[]; finalOutput: any; };