Skip to content

Commit 42c460c

Browse files
committed
fix: create and use prompt messages for prompts
1 parent cd9438b commit 42c460c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

messages/agent.generate.authoring-bundle.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,23 @@ This command requires an org because it uses it to access an LLM for generating
1616

1717
# flags.spec.summary
1818

19-
Path to the agent spec YAML file.
19+
Path to the agent spec YAML file; if not specified, the command provides a list that you can choose from.
20+
21+
# flags.spec.prompt
22+
23+
Path to the agent spec YAML file
2024

2125
# flags.output-dir.summary
2226

2327
Directory where the authoring bundle files are generated.
2428

2529
# flags.name.summary
2630

27-
Name (label) of the authoring bundle.
31+
Name (label) of the authoring bundle; if not specified, you're prompted for the name.
32+
33+
# flags.name.prompt
34+
35+
Name (label) of the authoring bundle
2836

2937
# flags.api-name.summary
3038

src/commands/agent/generate/authoring-bundle.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default class AgentGenerateAuthoringBundle extends SfCommand<AgentGenerat
6464
private static readonly FLAGGABLE_PROMPTS = {
6565
name: {
6666
message: messages.getMessage('flags.name.summary'),
67+
promptMessage: messages.getMessage('flags.name.prompt'),
6768
validate: (d: string): boolean | string =>
6869
d.trim().length > 0 || 'Name cannot be empty or contain only whitespace',
6970
required: true,
@@ -87,6 +88,7 @@ export default class AgentGenerateAuthoringBundle extends SfCommand<AgentGenerat
8788
},
8889
spec: {
8990
message: messages.getMessage('flags.spec.summary'),
91+
promptMessage: messages.getMessage('flags.spec.prompt'),
9092
validate: (d: string): boolean | string => {
9193
const specPath = resolve(d);
9294
if (!existsSync(specPath)) {

0 commit comments

Comments
 (0)