Body, Mind & Soul — API Reference
    Preparing search index...

    Function promptLeadGM

    • Route a prompt unconditionally to the lead GM. Used for dialogs that belong to GM authority regardless of the triggering actor (e.g. Survey Environment resolution).

      Parameters

      • spec: object

        Discriminated union keyed by type. An optional spec.requestId pre-seeds the requestId used for this prompt's focus-stack entry instead of generating a fresh one — lets a caller that needs to gate an ancillary, non-promptLeadGM-routed element (e.g. a passive canvas preview banner shown alongside this prompt) share the same requestId so both participate in the same focused-prompt slot. Stripped out of the enriched spec before dispatch/render so renderers never see it as a real spec field.

      Returns Promise<any>

      if the prompt chain is aborted.