@salesforce/plugin-agent 1.35.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -126,7 +126,7 @@ EXAMPLES
126
126
  $ sf agent activate --api-name Resort_Manager --version 2 --target-org my-org
127
127
  ```
128
128
 
129
- _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/activate.ts)_
129
+ _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/activate.ts)_
130
130
 
131
131
  ## `sf agent create`
132
132
 
@@ -193,7 +193,7 @@ EXAMPLES
193
193
  $ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
194
194
  ```
195
195
 
196
- _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/create.ts)_
196
+ _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/create.ts)_
197
197
 
198
198
  ## `sf agent deactivate`
199
199
 
@@ -234,7 +234,7 @@ EXAMPLES
234
234
  $ sf agent deactivate --api-name Resort_Manager --target-org my-org
235
235
  ```
236
236
 
237
- _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/deactivate.ts)_
237
+ _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/deactivate.ts)_
238
238
 
239
239
  ## `sf agent generate agent-spec`
240
240
 
@@ -341,7 +341,7 @@ EXAMPLES
341
341
  $ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
342
342
  ```
343
343
 
344
- _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/generate/agent-spec.ts)_
344
+ _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/generate/agent-spec.ts)_
345
345
 
346
346
  ## `sf agent generate authoring-bundle`
347
347
 
@@ -418,7 +418,7 @@ EXAMPLES
418
418
  other-package-dir/main/default --target-org my-dev-org
419
419
  ```
420
420
 
421
- _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/generate/authoring-bundle.ts)_
421
+ _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/generate/authoring-bundle.ts)_
422
422
 
423
423
  ## `sf agent generate template`
424
424
 
@@ -480,7 +480,7 @@ EXAMPLES
480
480
  my-package --source-org my-scratch-org
481
481
  ```
482
482
 
483
- _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/generate/template.ts)_
483
+ _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/generate/template.ts)_
484
484
 
485
485
  ## `sf agent generate test-spec`
486
486
 
@@ -545,7 +545,7 @@ EXAMPLES
545
545
  force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
546
546
  ```
547
547
 
548
- _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/generate/test-spec.ts)_
548
+ _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/generate/test-spec.ts)_
549
549
 
550
550
  ## `sf agent preview`
551
551
 
@@ -618,7 +618,7 @@ EXAMPLES
618
618
  $ sf agent preview --use-live-actions --apex-debug --output-dir transcripts/my-preview
619
619
  ```
620
620
 
621
- _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/preview.ts)_
621
+ _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/preview.ts)_
622
622
 
623
623
  ## `sf agent preview end`
624
624
 
@@ -673,7 +673,7 @@ EXAMPLES
673
673
  $ sf agent preview end --authoring-bundle My_Local_Agent
674
674
  ```
675
675
 
676
- _See code: [src/commands/agent/preview/end.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/preview/end.ts)_
676
+ _See code: [src/commands/agent/preview/end.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/preview/end.ts)_
677
677
 
678
678
  ## `sf agent preview send`
679
679
 
@@ -731,7 +731,7 @@ EXAMPLES
731
731
  $ sf agent preview send --utterance "what can you help me with?" --authoring-bundle My_Local_Agent
732
732
  ```
733
733
 
734
- _See code: [src/commands/agent/preview/send.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/preview/send.ts)_
734
+ _See code: [src/commands/agent/preview/send.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/preview/send.ts)_
735
735
 
736
736
  ## `sf agent preview sessions`
737
737
 
@@ -764,7 +764,7 @@ EXAMPLES
764
764
  $ sf agent preview sessions
765
765
  ```
766
766
 
767
- _See code: [src/commands/agent/preview/sessions.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/preview/sessions.ts)_
767
+ _See code: [src/commands/agent/preview/sessions.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/preview/sessions.ts)_
768
768
 
769
769
  ## `sf agent preview start`
770
770
 
@@ -829,7 +829,7 @@ EXAMPLES
829
829
  $ sf agent preview start --api-name My_Published_Agent
830
830
  ```
831
831
 
832
- _See code: [src/commands/agent/preview/start.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/preview/start.ts)_
832
+ _See code: [src/commands/agent/preview/start.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/preview/start.ts)_
833
833
 
834
834
  ## `sf agent publish authoring-bundle`
835
835
 
@@ -838,14 +838,17 @@ Publish an authoring bundle to your org, which results in a new agent or a new v
838
838
  ```
839
839
  USAGE
840
840
  $ sf agent publish authoring-bundle -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>]
841
- [--skip-retrieve]
841
+ [--skip-retrieve] [-v | --concise]
842
842
 
843
843
  FLAGS
844
844
  -n, --api-name=<value> API name of the authoring bundle you want to publish; if not specified, the command
845
845
  provides a list that you can choose from.
846
846
  -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
847
847
  configuration variable is already set.
848
+ -v, --verbose Display detailed output showing all metadata components retrieved and deployed during the
849
+ publish process.
848
850
  --api-version=<value> Override the api version used for api requests made by this command
851
+ --concise Display minimal output with only essential information about the publish operation.
849
852
  --skip-retrieve Don't retrieve the metadata associated with the agent to your DX project.
850
853
 
851
854
  GLOBAL FLAGS
@@ -876,9 +879,17 @@ EXAMPLES
876
879
  Publish an authoring bundle with API name MyAuthoringBundle to the org with alias "my-dev-org":
877
880
 
878
881
  $ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-dev-org
882
+
883
+ Publish with verbose output to see all retrieved and deployed metadata components:
884
+
885
+ $ sf agent publish authoring-bundle --api-name MyAuthoringbundle --verbose
886
+
887
+ Publish with concise output showing only essential information:
888
+
889
+ $ sf agent publish authoring-bundle --api-name MyAuthoringbundle --concise
879
890
  ```
880
891
 
881
- _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/publish/authoring-bundle.ts)_
892
+ _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/publish/authoring-bundle.ts)_
882
893
 
883
894
  ## `sf agent test create`
884
895
 
@@ -933,7 +944,7 @@ EXAMPLES
933
944
  $ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
934
945
  ```
935
946
 
936
- _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/test/create.ts)_
947
+ _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/test/create.ts)_
937
948
 
938
949
  ## `sf agent test list`
939
950
 
@@ -968,7 +979,7 @@ EXAMPLES
968
979
  $ sf agent test list --target-org my-org
969
980
  ```
970
981
 
971
- _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/test/list.ts)_
982
+ _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/test/list.ts)_
972
983
 
973
984
  ## `sf agent test results`
974
985
 
@@ -1034,7 +1045,7 @@ FLAG DESCRIPTIONS
1034
1045
  expression when using custom evaluations.
1035
1046
  ```
1036
1047
 
1037
- _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/test/results.ts)_
1048
+ _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/test/results.ts)_
1038
1049
 
1039
1050
  ## `sf agent test resume`
1040
1051
 
@@ -1107,7 +1118,7 @@ FLAG DESCRIPTIONS
1107
1118
  expression when using custom evaluations.
1108
1119
  ```
1109
1120
 
1110
- _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/test/resume.ts)_
1121
+ _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/test/resume.ts)_
1111
1122
 
1112
1123
  ## `sf agent test run`
1113
1124
 
@@ -1181,7 +1192,7 @@ FLAG DESCRIPTIONS
1181
1192
  expression when using custom evaluations.
1182
1193
  ```
1183
1194
 
1184
- _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/test/run.ts)_
1195
+ _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/test/run.ts)_
1185
1196
 
1186
1197
  ## `sf agent validate authoring-bundle`
1187
1198
 
@@ -1228,6 +1239,6 @@ EXAMPLES
1228
1239
  $ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
1229
1240
  ```
1230
1241
 
1231
- _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.35.0/src/commands/agent/validate/authoring-bundle.ts)_
1242
+ _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.0/src/commands/agent/validate/authoring-bundle.ts)_
1232
1243
 
1233
1244
  <!-- commandsstop -->
@@ -3,6 +3,12 @@ export type AgentPublishAuthoringBundleResult = {
3
3
  success: boolean;
4
4
  botDeveloperName?: string;
5
5
  errors?: string[];
6
+ retrievedComponents?: string[];
7
+ deployedComponents?: string[];
8
+ summary?: {
9
+ retrieved: number;
10
+ deployed: number;
11
+ };
6
12
  };
7
13
  export default class AgentPublishAuthoringBundle extends SfCommand<AgentPublishAuthoringBundleResult> {
8
14
  static readonly summary: string;
@@ -15,6 +21,8 @@ export default class AgentPublishAuthoringBundle extends SfCommand<AgentPublishA
15
21
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
22
  'api-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
23
  'skip-retrieve': import("@oclif/core/interfaces").BooleanFlag<boolean>;
24
+ verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
25
+ concise: import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
26
  };
19
27
  private static readonly FLAGGABLE_PROMPTS;
20
28
  run(): Promise<AgentPublishAuthoringBundleResult>;
@@ -43,6 +43,15 @@ export default class AgentPublishAuthoringBundle extends SfCommand {
43
43
  'skip-retrieve': Flags.boolean({
44
44
  summary: messages.getMessage('flags.skip-retrieve.summary'),
45
45
  }),
46
+ verbose: Flags.boolean({
47
+ summary: messages.getMessage('flags.verbose.summary'),
48
+ char: 'v',
49
+ exclusive: ['concise'],
50
+ }),
51
+ concise: Flags.boolean({
52
+ summary: messages.getMessage('flags.concise.summary'),
53
+ exclusive: ['verbose'],
54
+ }),
46
55
  };
47
56
  static FLAGGABLE_PROMPTS = {
48
57
  'api-name': {
@@ -68,6 +77,10 @@ export default class AgentPublishAuthoringBundle extends SfCommand {
68
77
  // If api-name is not provided, prompt user to select an .agent file from the project and extract the API name from it
69
78
  const aabName = flags['api-name'] ??
70
79
  (await promptForAgentFiles(this.project, AgentPublishAuthoringBundle.FLAGGABLE_PROMPTS['api-name']));
80
+ // Track retrieved and deployed components
81
+ const retrievedComponents = [];
82
+ const deployedComponents = [];
83
+ const outputMode = flags.verbose ? 'verbose' : flags.concise ? 'concise' : 'normal';
71
84
  // Create multi-stage output
72
85
  const mso = new MultiStageOutput({
73
86
  stages: ['Validate Bundle', 'Publish Agent', 'Retrieve Metadata', 'Deploy Metadata'],
@@ -122,10 +135,38 @@ export default class AgentPublishAuthoringBundle extends SfCommand {
122
135
  mso.error();
123
136
  throw SfError.create({ name: 'Retrieve Failed', message: errorMessage });
124
137
  }
138
+ // Capture retrieved components
139
+ const fileProperties = ensureArray(result.retrieveResult.response.fileProperties ?? []);
140
+ fileProperties.forEach((fp) => {
141
+ const componentName = `${fp.type}${fp.fullName ? `:${fp.fullName}` : ''}`;
142
+ retrievedComponents.push(componentName);
143
+ });
144
+ // Display retrieved components based on output mode
145
+ if (outputMode === 'verbose' && !this.jsonEnabled()) {
146
+ this.log(`${EOL}Retrieved metadata components:`);
147
+ retrievedComponents.forEach((comp) => this.log(` • ${comp}`));
148
+ }
149
+ else if (outputMode === 'normal' && !this.jsonEnabled()) {
150
+ this.log(`${EOL}Retrieved ${retrievedComponents.length} metadata component(s)`);
151
+ }
125
152
  return Promise.resolve();
126
153
  });
127
154
  Lifecycle.getInstance().on('scopedPostDeploy', (result) => {
128
155
  if (result.deployResult.response.status === RequestStatus.Succeeded) {
156
+ // Capture deployed components
157
+ const deployedFiles = ensureArray(result.deployResult.response.details?.componentSuccesses ?? []);
158
+ deployedFiles.forEach((comp) => {
159
+ const componentName = `${String(comp.componentType)}${comp.fullName ? `:${String(comp.fullName)}` : ''}`;
160
+ deployedComponents.push(componentName);
161
+ });
162
+ // Display deployed components based on output mode
163
+ if (outputMode === 'verbose' && !this.jsonEnabled()) {
164
+ this.log(`${EOL}Deployed metadata components:`);
165
+ deployedComponents.forEach((comp) => this.log(` • ${comp}`));
166
+ }
167
+ else if (outputMode === 'normal' && !this.jsonEnabled()) {
168
+ this.log(`${EOL}Deployed ${deployedComponents.length} metadata component(s)`);
169
+ }
129
170
  mso.stop();
130
171
  }
131
172
  else {
@@ -141,9 +182,19 @@ export default class AgentPublishAuthoringBundle extends SfCommand {
141
182
  });
142
183
  const result = await agent.publish(flags['skip-retrieve']);
143
184
  mso.stop();
185
+ // Display final summary for normal mode
186
+ if (outputMode === 'normal' && !this.jsonEnabled() && !flags.concise) {
187
+ this.log(`${EOL}✓ Agent '${result.developerName}' published successfully`);
188
+ }
144
189
  return {
145
190
  success: true,
146
191
  botDeveloperName: result.developerName,
192
+ retrievedComponents: flags.verbose ? retrievedComponents : undefined,
193
+ deployedComponents: flags.verbose ? deployedComponents : undefined,
194
+ summary: {
195
+ retrieved: retrievedComponents.length,
196
+ deployed: deployedComponents.length,
197
+ },
147
198
  };
148
199
  }
149
200
  }
@@ -1 +1 @@
1
- {"version":3,"file":"authoring-bundle.js","sourceRoot":"","sources":["../../../../src/commands/agent/publish/authoring-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OA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AC,CAAC;QAEH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;QAC3D,GAAG,CAAC,IAAI,EAAE,CAAC;QAEX,wCAAwC;QACxC,IAAI,UAAU,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YACrE,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,YAAY,MAAM,CAAC,aAAa,0BAA0B,CAAC,CAAC;QAC7E,CAAC;QAED,OAAO;YACL,OAAO,EAAE,IAAI;YACb,gBAAgB,EAAE,MAAM,CAAC,aAAa;YACtC,mBAAmB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS;YACpE,kBAAkB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS;YAClE,OAAO,EAAE;gBACP,SAAS,EAAE,mBAAmB,CAAC,MAAM;gBACrC,QAAQ,EAAE,kBAAkB,CAAC,MAAM;aACpC;SACF,CAAC;IACJ,CAAC"}
@@ -20,6 +20,14 @@ This command uses the API name of the authoring bundle.
20
20
 
21
21
  <%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --target-org my-dev-org
22
22
 
23
+ - Publish with verbose output to see all retrieved and deployed metadata components:
24
+
25
+ <%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --verbose
26
+
27
+ - Publish with concise output showing only essential information:
28
+
29
+ <%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --concise
30
+
23
31
  # flags.api-name.summary
24
32
 
25
33
  API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.
@@ -32,6 +40,14 @@ API name of the authoring bundle to publish
32
40
 
33
41
  Don't retrieve the metadata associated with the agent to your DX project.
34
42
 
43
+ # flags.verbose.summary
44
+
45
+ Display detailed output showing all metadata components retrieved and deployed during the publish process.
46
+
47
+ # flags.concise.summary
48
+
49
+ Display minimal output with only essential information about the publish operation.
50
+
35
51
  # error.missingRequiredFlags
36
52
 
37
53
  Required flag(s) missing: %s.
@@ -879,6 +879,130 @@
879
879
  "test-spec:generate:agent"
880
880
  ]
881
881
  },
882
+ "agent:publish:authoring-bundle": {
883
+ "aliases": [],
884
+ "args": {},
885
+ "description": "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.\n\nWhen 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; specify the --skip-retrieve flag to skip this step. Finally, the authoring bundle metadata (AiAuthoringBundle) is deployed to your org.\n\nThis command uses the API name of the authoring bundle.",
886
+ "examples": [
887
+ "Publish an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
888
+ "Publish an authoring bundle with API name MyAuthoringBundle to the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --target-org my-dev-org",
889
+ "Publish with verbose output to see all retrieved and deployed metadata components:\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --verbose",
890
+ "Publish with concise output showing only essential information:\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --concise"
891
+ ],
892
+ "flags": {
893
+ "json": {
894
+ "description": "Format output as json.",
895
+ "helpGroup": "GLOBAL",
896
+ "name": "json",
897
+ "allowNo": false,
898
+ "type": "boolean"
899
+ },
900
+ "flags-dir": {
901
+ "helpGroup": "GLOBAL",
902
+ "name": "flags-dir",
903
+ "summary": "Import flag values from a directory.",
904
+ "hasDynamicHelp": false,
905
+ "multiple": false,
906
+ "type": "option"
907
+ },
908
+ "target-org": {
909
+ "char": "o",
910
+ "name": "target-org",
911
+ "noCacheDefault": true,
912
+ "required": true,
913
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
914
+ "hasDynamicHelp": true,
915
+ "multiple": false,
916
+ "type": "option"
917
+ },
918
+ "api-version": {
919
+ "description": "Override the api version used for api requests made by this command",
920
+ "name": "api-version",
921
+ "hasDynamicHelp": false,
922
+ "multiple": false,
923
+ "type": "option"
924
+ },
925
+ "api-name": {
926
+ "char": "n",
927
+ "name": "api-name",
928
+ "summary": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
929
+ "hasDynamicHelp": false,
930
+ "multiple": false,
931
+ "type": "option"
932
+ },
933
+ "skip-retrieve": {
934
+ "name": "skip-retrieve",
935
+ "summary": "Don't retrieve the metadata associated with the agent to your DX project.",
936
+ "allowNo": false,
937
+ "type": "boolean"
938
+ },
939
+ "verbose": {
940
+ "char": "v",
941
+ "exclusive": [
942
+ "concise"
943
+ ],
944
+ "name": "verbose",
945
+ "summary": "Display detailed output showing all metadata components retrieved and deployed during the publish process.",
946
+ "allowNo": false,
947
+ "type": "boolean"
948
+ },
949
+ "concise": {
950
+ "exclusive": [
951
+ "verbose"
952
+ ],
953
+ "name": "concise",
954
+ "summary": "Display minimal output with only essential information about the publish operation.",
955
+ "allowNo": false,
956
+ "type": "boolean"
957
+ }
958
+ },
959
+ "hasDynamicHelp": true,
960
+ "hiddenAliases": [],
961
+ "id": "agent:publish:authoring-bundle",
962
+ "pluginAlias": "@salesforce/plugin-agent",
963
+ "pluginName": "@salesforce/plugin-agent",
964
+ "pluginType": "core",
965
+ "strict": true,
966
+ "summary": "Publish an authoring bundle to your org, which results in a new agent or a new version of an existing agent.",
967
+ "enableJsonFlag": true,
968
+ "requiresProject": true,
969
+ "errorCodes": {
970
+ "header": "ERROR CODES",
971
+ "body": [
972
+ {
973
+ "name": "Succeeded (0)",
974
+ "description": "Agent published successfully without errors."
975
+ },
976
+ {
977
+ "name": "Failed (1)",
978
+ "description": "Compilation errors found in the Agent Script file."
979
+ }
980
+ ]
981
+ },
982
+ "FLAGGABLE_PROMPTS": {
983
+ "api-name": {
984
+ "message": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
985
+ "promptMessage": "API name of the authoring bundle to publish"
986
+ }
987
+ },
988
+ "isESM": true,
989
+ "relativePath": [
990
+ "lib",
991
+ "commands",
992
+ "agent",
993
+ "publish",
994
+ "authoring-bundle.js"
995
+ ],
996
+ "aliasPermutations": [],
997
+ "permutations": [
998
+ "agent:publish:authoring-bundle",
999
+ "publish:agent:authoring-bundle",
1000
+ "publish:authoring-bundle:agent",
1001
+ "agent:authoring-bundle:publish",
1002
+ "authoring-bundle:agent:publish",
1003
+ "authoring-bundle:publish:agent"
1004
+ ]
1005
+ },
882
1006
  "agent:preview:end": {
883
1007
  "aliases": [],
884
1008
  "args": {},
@@ -1346,109 +1470,6 @@
1346
1470
  "start:preview:agent"
1347
1471
  ]
1348
1472
  },
1349
- "agent:publish:authoring-bundle": {
1350
- "aliases": [],
1351
- "args": {},
1352
- "description": "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.\n\nWhen 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; specify the --skip-retrieve flag to skip this step. Finally, the authoring bundle metadata (AiAuthoringBundle) is deployed to your org.\n\nThis command uses the API name of the authoring bundle.",
1353
- "examples": [
1354
- "Publish an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
1355
- "Publish an authoring bundle with API name MyAuthoringBundle to the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --target-org my-dev-org"
1356
- ],
1357
- "flags": {
1358
- "json": {
1359
- "description": "Format output as json.",
1360
- "helpGroup": "GLOBAL",
1361
- "name": "json",
1362
- "allowNo": false,
1363
- "type": "boolean"
1364
- },
1365
- "flags-dir": {
1366
- "helpGroup": "GLOBAL",
1367
- "name": "flags-dir",
1368
- "summary": "Import flag values from a directory.",
1369
- "hasDynamicHelp": false,
1370
- "multiple": false,
1371
- "type": "option"
1372
- },
1373
- "target-org": {
1374
- "char": "o",
1375
- "name": "target-org",
1376
- "noCacheDefault": true,
1377
- "required": true,
1378
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1379
- "hasDynamicHelp": true,
1380
- "multiple": false,
1381
- "type": "option"
1382
- },
1383
- "api-version": {
1384
- "description": "Override the api version used for api requests made by this command",
1385
- "name": "api-version",
1386
- "hasDynamicHelp": false,
1387
- "multiple": false,
1388
- "type": "option"
1389
- },
1390
- "api-name": {
1391
- "char": "n",
1392
- "name": "api-name",
1393
- "summary": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
1394
- "hasDynamicHelp": false,
1395
- "multiple": false,
1396
- "type": "option"
1397
- },
1398
- "skip-retrieve": {
1399
- "name": "skip-retrieve",
1400
- "summary": "Don't retrieve the metadata associated with the agent to your DX project.",
1401
- "allowNo": false,
1402
- "type": "boolean"
1403
- }
1404
- },
1405
- "hasDynamicHelp": true,
1406
- "hiddenAliases": [],
1407
- "id": "agent:publish:authoring-bundle",
1408
- "pluginAlias": "@salesforce/plugin-agent",
1409
- "pluginName": "@salesforce/plugin-agent",
1410
- "pluginType": "core",
1411
- "strict": true,
1412
- "summary": "Publish an authoring bundle to your org, which results in a new agent or a new version of an existing agent.",
1413
- "enableJsonFlag": true,
1414
- "requiresProject": true,
1415
- "errorCodes": {
1416
- "header": "ERROR CODES",
1417
- "body": [
1418
- {
1419
- "name": "Succeeded (0)",
1420
- "description": "Agent published successfully without errors."
1421
- },
1422
- {
1423
- "name": "Failed (1)",
1424
- "description": "Compilation errors found in the Agent Script file."
1425
- }
1426
- ]
1427
- },
1428
- "FLAGGABLE_PROMPTS": {
1429
- "api-name": {
1430
- "message": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
1431
- "promptMessage": "API name of the authoring bundle to publish"
1432
- }
1433
- },
1434
- "isESM": true,
1435
- "relativePath": [
1436
- "lib",
1437
- "commands",
1438
- "agent",
1439
- "publish",
1440
- "authoring-bundle.js"
1441
- ],
1442
- "aliasPermutations": [],
1443
- "permutations": [
1444
- "agent:publish:authoring-bundle",
1445
- "publish:agent:authoring-bundle",
1446
- "publish:authoring-bundle:agent",
1447
- "agent:authoring-bundle:publish",
1448
- "authoring-bundle:agent:publish",
1449
- "authoring-bundle:publish:agent"
1450
- ]
1451
- },
1452
1473
  "agent:test:create": {
1453
1474
  "aliases": [],
1454
1475
  "args": {},
@@ -2375,5 +2396,5 @@
2375
2396
  ]
2376
2397
  }
2377
2398
  },
2378
- "version": "1.35.0"
2399
+ "version": "1.36.0"
2379
2400
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-agent",
3
3
  "description": "Commands to interact with Salesforce agents",
4
- "version": "1.35.0",
4
+ "version": "1.36.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "enableO11y": true,
@@ -240,7 +240,7 @@
240
240
  "exports": "./lib/index.js",
241
241
  "type": "module",
242
242
  "sfdx": {
243
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.35.0.crt",
244
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.35.0.sig"
243
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.36.0.crt",
244
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.36.0.sig"
245
245
  }
246
246
  }
@@ -16,6 +16,31 @@
16
16
  "items": {
17
17
  "type": "string"
18
18
  }
19
+ },
20
+ "retrievedComponents": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ "deployedComponents": {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "summary": {
33
+ "type": "object",
34
+ "properties": {
35
+ "retrieved": {
36
+ "type": "number"
37
+ },
38
+ "deployed": {
39
+ "type": "number"
40
+ }
41
+ },
42
+ "required": ["retrieved", "deployed"],
43
+ "additionalProperties": false
19
44
  }
20
45
  },
21
46
  "required": ["success"],