Skip to content

ScriptRunState

Defined in: logic/ScriptGraphRunner.ts:199

Per-instance runtime. The component stays serializable; this lives beside it.

calls: Map<string, ScriptFrame>

Defined in: logic/ScriptGraphRunner.ts:195

graph.call node id → the frame of the graph that call enters.

ScriptFrame.calls


halted: boolean

Defined in: logic/ScriptGraphRunner.ts:202

Set when the budget blew: the instance is done until something reloads it.


produced: Map<string, Record<string, ScriptValue>>

Defined in: logic/ScriptGraphRunner.ts:193

What an impure node last handed back, so a wire off it reads that.

ScriptFrame.produced


reported: Set<string>

Defined in: logic/ScriptGraphRunner.ts:204

Problems already reported, so a bad graph does not reprint every frame.


started: boolean

Defined in: logic/ScriptGraphRunner.ts:200


timers: Map<string, number>

Defined in: logic/ScriptGraphRunner.ts:191

flow.delay node id → seconds still to wait.

ScriptFrame.timers


vars: Map<string, ScriptValue>

Defined in: logic/ScriptGraphRunner.ts:189

Graph variables, by name.

ScriptFrame.vars