Saxonberg Server API
    Preparing search index...

    Function collectPhaseEffects

    • Walk the verb's active option-definition map and collect every PhaseEffect whose option is truthy on the bound model and whose declared phase matches phase.

      The dispatcher passes its collectActiveOptionDefs(...) output as optionDefs — that map's keys are already field-keys (field ?? name), so the lookup against activeModel is direct.

      An option's effects fire when the bound model's value at that field is truthy. Boolean options are the natural fit; other types coerce per JS truthiness.

      Parameters

      • phase: "validate" | "dispatch" | "focus-update" | "confirm-prompt" | "emit-scene"
      • activeModel: Record<string, unknown>
      • optionDefs: Record<string, { effects?: PhaseEffect[] }>

      Returns PhaseEffect[]