Skip to content

Commit 10fcd5e

Browse files
committed
fix: update UX
1 parent 633e484 commit 10fcd5e

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/commands/agent/create.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)