fix: refine protocol types

This commit is contained in:
mingholy.lmh
2025-10-31 12:57:54 +08:00
parent 1aa282c054
commit 8034fd5f82
5 changed files with 51 additions and 32 deletions

View File

@@ -171,7 +171,8 @@ export async function runNonInteractive(
debugMode: config.getDebugMode(),
});
const isStreamJsonOutput = config.getOutputFormat() === 'stream-json';
const isStreamJsonOutput =
config.getOutputFormat() === OutputFormat.STREAM_JSON;
const streamJsonContext = options.streamJson;
const streamJsonWriter = isStreamJsonOutput
? (streamJsonContext?.writer ??