chore: fix format

This commit is contained in:
Ralph Khreish
2025-08-22 18:07:32 +02:00
parent ade9f94e73
commit fa5de356da
3 changed files with 11 additions and 30 deletions

View File

@@ -63,14 +63,15 @@ export class PrdParseConfig {
this.targetTag = this.tag || getCurrentTag(this.projectRoot) || 'master';
this.isMCP = !!this.mcpLog;
this.outputFormat = this.isMCP && !this.reportProgress ? 'json' : 'text';
// Feature flag: Temporarily disable streaming, use generateObject instead
// TODO: Re-enable streaming once issues are resolved
const ENABLE_STREAMING = false;
this.useStreaming = ENABLE_STREAMING && (
typeof this.reportProgress === 'function' || this.outputFormat === 'text'
);
this.useStreaming =
ENABLE_STREAMING &&
(typeof this.reportProgress === 'function' ||
this.outputFormat === 'text');
}
/**