Skip to content

Commit d0f33df

Browse files
authored
Merge pull request #280 from salesforcecli/jshackell-sfdc-patch-1
W-20424458: edit messages
2 parents ef21b23 + 42c460c commit d0f33df

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

messages/agent.generate.authoring-bundle.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ This command requires an org because it uses it to access an LLM for generating
1818

1919
Path to the agent spec YAML file; if not specified, the command provides a list that you can choose from.
2020

21+
# flags.spec.prompt
22+
23+
Path to the agent spec YAML file
24+
2125
# flags.output-dir.summary
2226

2327
Directory where the authoring bundle files are generated.
@@ -26,6 +30,10 @@ Directory where the authoring bundle files are generated.
2630

2731
Name (label) of the authoring bundle; if not specified, you're prompted for the name.
2832

33+
# flags.name.prompt
34+
35+
Name (label) of the authoring bundle
36+
2937
# flags.api-name.summary
3038

3139
API name of the new authoring bundle; if not specified, the API name is derived from the authoring bundle name (label); the API name can't exist in the org.

messages/agent.publish.authoring-bundle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Publish an authoring bundle to your org, which results in a new agent or a new v
66

77
An authoring bundle is a metadata type (named aiAuthoringBundle) that provides the blueprint for an agent. The metadata type contains two files: the standard metatada XML file and an Agent Script file (extension ".agent") that fully describes the agent using the Agent Script language.
88

9-
When you publish an authoring bundle to your org, a number of things happen. First, this command validates that the Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent Script file to continue. Once the Agent Script file compiles, then the authoring bundle metadata component is deployed to the org. All associated agent metadata components, such as the Bot, BotVersion, and GenAiXXX components, are either created or updated in the org. Finally, all the new or changed metadata components associated with the new agent are retrieved back to your local DX project.
9+
When you publish an authoring bundle to your org, a number of things happen. First, this command validates that the Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent Script file to continue. Once the Agent Script file compiles, then it's published to the org, which in turn creates new associated metadata (Bot, BotVersion, GenAiX), or new versions of the metadata if the agent already exists. The new or updated metadata is retrieved back to your DX project, and then the authoring bundle metadata (AiAuthoringBundle) is deployed to your org.
1010

1111
This command uses the API name of the authoring bundle.
1212

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)