(block: unknown)
| 99 | } |
| 100 | |
| 101 | function blockText(block: unknown): string { |
| 102 | if (block && typeof block === "object" && typeof (block as Json).text === "string") { |
| 103 | return (block as Json).text as string; |
| 104 | } |
| 105 | return JSON.stringify(stripCacheControl(block)); |
| 106 | } |
| 107 | |
| 108 | /** Build the wire-order segment list: system blocks first, then every message. */ |
| 109 | export function buildSegments(body: MinimalRequest["body"]): WireSegment[] { |
no test coverage detected