UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

15 lines (14 loc) 507 B
import { type TaskCommand, type TaskView } from "#tasks/types.js"; export type TaskTransitionResult = { readonly action: "accepted"; readonly view: TaskView; } | { readonly action: "noop"; readonly view: TaskView; } | { readonly action: "rejected"; readonly view: TaskView; readonly reason: string; }; /** Pure, executor-neutral transition function for one durable task. */ export declare function applyTaskTransition(view: TaskView, command: TaskCommand): TaskTransitionResult;