* Drain queued `sandbox.file` chunks (emitted via the SandboxRuntime sink) * through the middleware pipeline and into the public stream.
()
| 2543 | * through the middleware pipeline and into the public stream. |
| 2544 | */ |
| 2545 | private async *drainSandboxFileQueue(): AsyncGenerator<StreamChunk> { |
| 2546 | while (this.sandboxFileQueue.length > 0) { |
| 2547 | const chunk = this.sandboxFileQueue.shift() |
| 2548 | if (chunk) yield* this.pipeThroughMiddleware(chunk) |
| 2549 | } |
| 2550 | } |
| 2551 | |
| 2552 | /** |
| 2553 | * Drain an executeToolCalls async generator, yielding any CustomEvent chunks |
no test coverage detected