waygraph / RunGraphOptions
Interface: RunGraphOptions
Defined in: src/engine/run/run.ts:161
Options for runGraph's trailing options arg and for Flow.run's options overload.
Extended by
Properties
closeOnFinish?
optionalcloseOnFinish?:boolean
Defined in: src/engine/run/run.ts:179
Flow.run defaults this to true only when it opened the page itself (no page given) - matching every call from before this option existed. If you pass your own page, it defaults to false instead: a page you opened is yours to close, not this run's to close out from under you. Either way an explicit value here always wins. runGraph itself has no such page-aware default (its caller already decided page and closeOnFinish together) - it just does what you ask.
from?
optionalfrom?:Checkpoint<string>
Defined in: src/engine/run/run.ts:185
The Checkpoint the run starts on: its first Block's input. Default Start. A runner that plays a flow one step at a time passes where the last step landed, so a step that stays where it is (.set, .expect, a skipped when) stays there, not at the start.
keepPanes?
optionalkeepPanes?:boolean
Defined in: src/engine/run/run.ts:190
Leave the flow's panes open when it ends: a runner that plays a flow one step at a time closes them itself, when the flow is done.
page?
optionalpage?:Page
Defined in: src/engine/run/run.ts:169
Drive this already-open page instead of opening a new one via context.newPage(). Lets a run continue on a tab the caller already has open (e.g. one that's already logged in), instead of every run being forced to start its own fresh tab and lose access to whatever was already there.