Member Junction
    Preparing search index...

    Function BuildServerNarrationInstructions

    • Builds the spoken-update instructions for the server-bridged runner from the DB template (substituting {{ progressMessage }} / {{ updateNumber }}, space and no-space variants), falling back to DefaultServerNarrationInstructions when the template is absent or blank. The {{ priorNarrations }} placeholder is substituted with a neutral note — the server-bridged path cannot observe what the model actually SAID (those transcripts ride the provider socket), unlike the browser host which chains them.

      Parameters

      • template: string

        The DB-driven instruction template, or null/undefined when unavailable.

      • digest: string

        The aggregated progress digest (one or more updates, oldest first).

      • updateNumber: number

        1-based number of this spoken update within the current task.

      Returns string

      The complete spoken-update instruction text.