waygraph / BlockInfo
Interface: BlockInfo
Defined in: src/engine/flow/flow.ts:63
One Block's identity as exposed by graph introspection - Flow.blocks, ComposedBlock.steps - without needing to execute anything. Does not include the Block's literal Checkpoint In/Out tags: those are TypeScript literal types, erased at runtime, and can only be recovered by a build-time static-analysis tool reading the source's own type annotations - see the graph-visualization openspec change for that piece.
Properties
block
block:
SomeBlock
Defined in: src/engine/flow/flow.ts:80
The actual Block, re-runnable on its own - e.g. step-through tooling that runs a Flow's Blocks one at a time. Introspection that only wants to read the shape (a visualizer) can ignore this and use name/routes alone.
cleanup?
optionalcleanup?:true
Defined in: src/engine/flow/flow.ts:73
A cleanup step (.finally(Block)): it runs after the flow's steps, whether they passed or failed.
given?
optionalgiven?:true
Defined in: src/engine/flow/flow.ts:75
A precondition (map({ given })): played before the flow's first step; its failure blocks the flow.
name
name:
string
Defined in: src/engine/flow/flow.ts:64
resetSessionBefore?
optionalresetSessionBefore?:boolean
Defined in: src/engine/flow/flow.ts:71
True when a session-reset boundary runs immediately before this Block: the first Block of a sub-flow nested with .flow(sub, { reset: true }) (or a CLI chain segment whose flow has sessionReset). Absent on an ordinary Flow.
routes?
optionalroutes?:Readonly<Record<string,string|null>>
Defined in: src/engine/flow/flow.ts:66
branch()'s routing table, if this Block has one - see Block.routes.