File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -46,26 +46,19 @@ export default class AgentCreate extends SfCommand<AgentCreateResult> {
4646
4747 public async run ( ) : Promise < AgentCreateResult > {
4848 const { flags } = await this . parse ( AgentCreate ) ;
49- const mso = new MultiStageOutput < { file ?: string } > ( {
49+ const jsonParsingStage = `Parsing ${ flags [ 'job-spec' ] } ` ;
50+ const mso = new MultiStageOutput ( {
5051 jsonEnabled : this . jsonEnabled ( ) ,
5152 title : `Creating ${ flags . name } Agent` ,
5253 stages : [
53- 'Parsing agent spec JSON' ,
54+ jsonParsingStage ,
5455 'Generating GenAiPlanner metadata' ,
5556 'Creating agent in org' ,
5657 'Retrieving agent metadata' ,
5758 ] ,
58- stageSpecificBlock : [
59- {
60- stage : 'Parsing agent spec JSON' ,
61- get : ( data ) => data ?. file ,
62- type : 'static-key-value' ,
63- label : 'file' ,
64- } ,
65- ] ,
6659 } ) ;
6760
68- mso . goto ( 'Parsing agent spec JSON' , { file : flags [ 'job-spec' ] } ) ;
61+ mso . goto ( jsonParsingStage ) ;
6962 await sleep ( Duration . milliseconds ( 200 ) ) ;
7063
7164 mso . goto ( 'Generating GenAiPlanner metadata' ) ;
You can’t perform that action at this time.
0 commit comments