From 5d16211918cf0e7c199f990102b52f7822f5eef2 Mon Sep 17 00:00:00 2001 From: lim Date: Wed, 19 Nov 2025 15:00:21 +0000 Subject: [PATCH] chore --- lib/k8s/sandbox-manager.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/k8s/sandbox-manager.ts b/lib/k8s/sandbox-manager.ts index 2de91f4..2dc7958 100644 --- a/lib/k8s/sandbox-manager.ts +++ b/lib/k8s/sandbox-manager.ts @@ -1,4 +1,5 @@ import * as k8s from '@kubernetes/client-node' +import { PassThrough } from 'stream' import { logger as baseLogger } from '@/lib/logger' @@ -1487,11 +1488,9 @@ echo "{\\"cwd\\":\\"$CWD\\",\\"homeDir\\":\\"$HOME_DIR\\",\\"isInHome\\":$IS_IN_ let errorOutput = '' try { - const stream = await import('stream') - await new Promise((resolve, reject) => { - const stdoutStream = new stream.PassThrough() - const stderrStream = new stream.PassThrough() + const stdoutStream = new PassThrough() + const stderrStream = new PassThrough() stdoutStream.on('data', (chunk) => { output += chunk.toString()