API

Interface FgContext

Per-execution-instance MUTABLE state — plain data.

interface FgContext {
    connectionValues: Record<string, FgValue>;
    executionVariables: Record<string, unknown>;
    pending: FgPendingTask[];
    rightHanded: boolean;
    userVariables: Record<string, FgValue>;
}
Index
connectionValues: Record<string, FgValue>

Data transport slots: ${blockId}:${socket} → last value the producer wrote. NOT a validity cache — producers recompute on every pull.

executionVariables: Record<string, unknown>

Per-block scratch: ${blockId}:${key} → value (counters, async tokens, the data-pull resolving guard, last event payload).

pending: FgPendingTask[]

Async task records, ticked each frame (deduped; carry cancel tokens).

rightHanded: boolean

glTF graphs are right-handed; drives Z/handedness coercion on read.

userVariables: Record<string, FgValue>

Live graph variable values (seeded from FgGraph.variables).