@@ -5,7 +5,7 @@ import { EventEmitter } from 'node:events';
55import React from 'react' ;
66import stripAnsi from 'strip-ansi'
77
8- import { Plan } from '../../entities/plan.js' ;
8+ import { Plan , ResourcePlan } from '../../entities/plan.js' ;
99import { ResourceConfig } from '../../entities/resource-config.js' ;
1010import { ResourceInfo } from '../../entities/resource-info.js' ;
1111import { ctx , Event , ProcessName , SubProcessName } from '../../events/context.js' ;
@@ -226,8 +226,8 @@ export class DefaultReporter implements Reporter {
226226 void this . updateRenderState ( RenderStatus . DISPLAY_PLAN , plan )
227227 }
228228
229- displayMessage ( message : string ) {
230- void this . updateRenderState ( RenderStatus . DISPLAY_MESSAGE , message ) ;
229+ async displayMessage ( message : string ) {
230+ await this . updateRenderState ( RenderStatus . DISPLAY_MESSAGE , message ) ;
231231 }
232232
233233 async promptInitResultSelection ( availableTypes : string [ ] ) : Promise < string [ ] > {
@@ -267,6 +267,10 @@ export class DefaultReporter implements Reporter {
267267 void this . updateRenderState ( RenderStatus . DISPLAY_FILE_MODIFICATION , diff ) ;
268268 }
269269
270+ async displayApplyValidationError ( resourcePlan : ResourcePlan ) {
271+ await this . updateRenderState ( RenderStatus . APPLY_VALIDATION_ERROR , resourcePlan ) ;
272+ }
273+
270274 private log ( log : string ) : void {
271275 if ( this . silent ) return ;
272276
0 commit comments