elioria-sst-x
    Preparing search index...

    Class PlanDispatchWorkflow

    Durably executes only a revalidated, allowlisted capability from an owner-bound plan.

    Hierarchy

    • WorkflowEntrypoint<Env, PlanDispatchParams>
      • PlanDispatchWorkflow
    Index
    • Parameters

      • ctx: ExecutionContext
      • env: Env

      Returns PlanDispatchWorkflow

    • Generated

      Executes run.

      Parameters

      • event: WorkflowEvent<PlanDispatchParams>

        The event value.

      • step: WorkflowStep

        The step value.

      Returns Promise<
          | {
              authorizesExecution: boolean;
              executionId: string;
              planId: string;
              status: "COMPENSATED";
          }
          | {
              authorizesExecution: boolean;
              executionId: string;
              planId: string;
              status: "COMPLETED";
          }
          | { authorizesExecution: boolean; planId: string; status: string },
      >

      The function result.

      Objective: In module apps/agente/src/workflows/plan-dispatch.ts, run run.

      Behavior: Async; accepts event and step; returns a value; invokes step.do.