fix(cli): route plain ingest progress to stderr

This commit is contained in:
Andrey Avtomonov 2026-05-12 15:15:28 +02:00
parent d45c6346e0
commit dc0e33ddda
2 changed files with 22 additions and 21 deletions

View file

@ -306,7 +306,7 @@ function createPlainIngestProgressRenderer(
if (!hasPendingTransient) {
return;
}
io.stdout.write('\n');
io.stderr.write('\n');
hasPendingTransient = false;
};
@ -315,12 +315,12 @@ function createPlainIngestProgressRenderer(
lastPercent = nextPercent;
const line = `[${nextPercent}%] ${message}`;
if (options?.transient === true) {
io.stdout.write(`\r${line}\u001b[K`);
io.stderr.write(`\r${line}\u001b[K`);
hasPendingTransient = true;
return;
}
flush();
io.stdout.write(`${line}\n`);
io.stderr.write(`${line}\n`);
};
return {