diff --git a/src/commands/agent/create.ts b/src/commands/agent/create.ts index 657ff95..01b7622 100644 --- a/src/commands/agent/create.ts +++ b/src/commands/agent/create.ts @@ -46,26 +46,19 @@ export default class AgentCreate extends SfCommand { public async run(): Promise { const { flags } = await this.parse(AgentCreate); - const mso = new MultiStageOutput<{ file?: string }>({ + const jsonParsingStage = `Parsing ${flags['job-spec']}`; + const mso = new MultiStageOutput({ jsonEnabled: this.jsonEnabled(), title: `Creating ${flags.name} Agent`, stages: [ - 'Parsing agent spec JSON', + jsonParsingStage, 'Generating GenAiPlanner metadata', 'Creating agent in org', 'Retrieving agent metadata', ], - stageSpecificBlock: [ - { - stage: 'Parsing agent spec JSON', - get: (data) => data?.file, - type: 'static-key-value', - label: 'file', - }, - ], }); - mso.goto('Parsing agent spec JSON', { file: flags['job-spec'] }); + mso.goto(jsonParsingStage); await sleep(Duration.milliseconds(200)); mso.goto('Generating GenAiPlanner metadata');