( entries: readonly WireEntry[], sessionId: string, agentId: string, baseUrl: string = '', )
| 29 | * blob routes so the UI can render them. Only mutates `entry.data`; |
| 30 | * `entry.raw` is left untouched. */ |
| 31 | export function rehydrateWireEntries( |
| 32 | entries: readonly WireEntry[], |
| 33 | sessionId: string, |
| 34 | agentId: string, |
| 35 | baseUrl: string = '', |
| 36 | ): void { |
| 37 | for (const entry of entries) { |
| 38 | rehydrateRecord(entry.data as Record<string, unknown>, sessionId, agentId, baseUrl); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | function rehydrateRecord( |
| 43 | record: Record<string, unknown>, |
no test coverage detected