wirePrompt property

String get wirePrompt

The single string actually put on the wire.

Composition lives here, on the value object, so both transports send byte-identical prompts for the same request — the two paths differ in how they reach a server, never in what they say to it.

Implementation

String get wirePrompt =>
    context.isEmpty ? prompt : '$prompt\n\n---\n\n$context';