footprintjs - v11.2.0
    Preparing search index...

    Interface RunResult

    Result from RunContext.run() — owns state and output.

    A run that PAUSED resolves too. It is told apart by paused: true and carries the checkpoint; its output is undefined, because the chart has not produced one (the output mapper is not asked about half-built state). A run that finished has neither field.

    interface RunResult {
        checkpoint?: FlowchartCheckpoint;
        commitLog: unknown[];
        executionTree: unknown;
        output: unknown;
        paused?: true;
        state: Record<string, unknown>;
    }
    Index
    checkpoint?: FlowchartCheckpoint

    Present only when the run paused. The short form keeps no executor, so resume on one made from the same chart and set up like the first run. The checkpoint holds raw state by design; the redaction policy and the recorders are configuration, so a bare executor would resume without them and write selected values in full:

    const executor = new FlowChartExecutor(chart);
    executor.setRedactionPolicy(samePolicy); // the policy given to `chart.redact(...)`
    executor.attachCombinedRecorder(sameRecorder); // each recorder given to `chart.recorder(...)`
    await executor.resume(result.checkpoint, answer);
    commitLog: unknown[]

    Commit log for time-travel.

    executionTree: unknown

    Full execution tree for debugging.

    output: unknown

    Mapped output via contract mapper (if declared). undefined for a run that paused.

    paused?: true

    Present, and true, only when the run paused: the stages after the pause have not run.

    state: Record<string, unknown>

    Raw scope state after execution — at the pause, for a run that paused.