OpenBodyOutput
Type, in @jr2/orchestrator/src/open-body.ts. It is an export of @jr2/orchestrator, on the Authoring surface page, in Charts.
ts
type OpenBodyOutput =
| { outcome: "done"; output: unknown }
| { outcome: "refused"; report: string[] }
| { outcome: "ceiling"; ceiling: keyof Ceilings; detail: string };The output of an Open body. Route on outcome in the onDone of the state that invokes it:
done: the Chart got to a final state.outputis the output of the Chart.refused: the door refused the Chart.reporthas one line for each problem. Give it to the Agent that wrote the Chart, so that it can send a corrected one.ceiling: the Chart got to a ceiling, and the Open body stopped it.ceilingnames it.
Forms: it is one of these objects.
Form 1:
outcome,outputoutcome:"done"output:unknown
Form 2:
outcome,reportoutcome:"refused"report:string[]
Form 3:
outcome,ceiling,detailoutcome:"ceiling"ceiling:keyof Ceilingsdetail:string
See also