Skip to main content

Function: replayTranscript()

replayTranscript(provider, lines, spawn, chunking?): Promise<ReplayResult>

Feeds lines to the engine as the daemon would for this provider (a lines session over pipes) and returns what it emitted. Only for a line-oriented provider: one that speaks a session protocol has no lines to replay.

Parameters​

provider​

Backend

lines​

readonly string[]

spawn​

BuildSpawnOpts

chunking?​

"bytes" | "lines" | "whole" | "crlf"

Returns​

Promise<ReplayResult>