ChartAction
Type, in @jr2/orchestrator/src/chart.ts. The signature of an export, or a type that it names, names this type. The Authoring surface page lists each export. This type is not an export of @jr2/orchestrator, so a workflow module does not import it by name.
ts
type ChartAction =
| { type: "set"; path: string; from: ChartValue }
| { type: "append"; path: string; from: ChartValue }
| { type: "increment"; path: string; by?: number }
| { type: "clear"; path: string }
| { type: string; params?: ChartValue };An action. The four generic ones write the run's context at path, a context path WITHOUT the context. root ("round", "ticket.notes", "items.0"); every other type is a lent action.
Forms: it is one of these objects.
Form 1:
type,path,fromtype:"set"path:stringfrom:ChartValue
Form 2:
type,path,fromtype:"append"path:stringfrom:ChartValue
Form 3:
type,path,bytype:"increment"path:stringby(optional):number
Form 4:
type,pathtype:"clear"path:string
Form 5:
type,paramstype:stringparams(optional):ChartValue