waygraph / preflight
Function: preflight()
preflight(
mem,block):void
Defined in: src/engine/run/run.ts:31
Checks block.requires against mem and throws, naming every missing key at once, if any are unset. connect() unions each Block's requires into the composed Block, so calling this on a map()-built Flow's entry - which runGraph does automatically, before opening a tab - covers every Block in that flow. It does not see Blocks only reachable through branch() routing, since those depend on a runtime decision that hasn't happened yet.
Parameters
mem
block
Returns
void