@salesforce/plugin-agent 1.24.14-nga.2 → 1.24.14-nga.3

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
@@ -112,7 +112,7 @@ EXAMPLES
112
112
  $ sf agent activate --api-name Resort_Manager --target-org my-org
113
113
  ```
114
114
 
115
- _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/activate.ts)_
115
+ _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/activate.ts)_
116
116
 
117
117
  ## `sf agent create`
118
118
 
@@ -179,7 +179,7 @@ EXAMPLES
179
179
  $ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
180
180
  ```
181
181
 
182
- _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/create.ts)_
182
+ _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/create.ts)_
183
183
 
184
184
  ## `sf agent deactivate`
185
185
 
@@ -219,7 +219,7 @@ EXAMPLES
219
219
  $ sf agent deactivate --api-name Resort_Manager --target-org my-org
220
220
  ```
221
221
 
222
- _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/deactivate.ts)_
222
+ _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/deactivate.ts)_
223
223
 
224
224
  ## `sf agent generate agent-spec`
225
225
 
@@ -326,7 +326,7 @@ EXAMPLES
326
326
  $ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
327
327
  ```
328
328
 
329
- _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/generate/agent-spec.ts)_
329
+ _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/generate/agent-spec.ts)_
330
330
 
331
331
  ## `sf agent generate authoring-bundle`
332
332
 
@@ -385,7 +385,7 @@ EXAMPLES
385
385
  other-package-dir/main/default --target-org my-dev-org
386
386
  ```
387
387
 
388
- _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/generate/authoring-bundle.ts)_
388
+ _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/generate/authoring-bundle.ts)_
389
389
 
390
390
  ## `sf agent generate template`
391
391
 
@@ -433,7 +433,7 @@ EXAMPLES
433
433
  force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
434
434
  ```
435
435
 
436
- _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/generate/template.ts)_
436
+ _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/generate/template.ts)_
437
437
 
438
438
  ## `sf agent generate test-spec`
439
439
 
@@ -494,7 +494,7 @@ EXAMPLES
494
494
  force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
495
495
  ```
496
496
 
497
- _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/generate/test-spec.ts)_
497
+ _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/generate/test-spec.ts)_
498
498
 
499
499
  ## `sf agent preview`
500
500
 
@@ -560,7 +560,7 @@ EXAMPLES
560
560
  transcripts/my-preview
561
561
  ```
562
562
 
563
- _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/preview.ts)_
563
+ _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/preview.ts)_
564
564
 
565
565
  ## `sf agent publish authoring-bundle`
566
566
 
@@ -604,7 +604,7 @@ EXAMPLES
604
604
  $ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-org
605
605
  ```
606
606
 
607
- _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/publish/authoring-bundle.ts)_
607
+ _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/publish/authoring-bundle.ts)_
608
608
 
609
609
  ## `sf agent test create`
610
610
 
@@ -659,7 +659,7 @@ EXAMPLES
659
659
  $ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
660
660
  ```
661
661
 
662
- _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/test/create.ts)_
662
+ _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/test/create.ts)_
663
663
 
664
664
  ## `sf agent test list`
665
665
 
@@ -694,7 +694,7 @@ EXAMPLES
694
694
  $ sf agent test list --target-org my-org
695
695
  ```
696
696
 
697
- _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/test/list.ts)_
697
+ _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/test/list.ts)_
698
698
 
699
699
  ## `sf agent test results`
700
700
 
@@ -760,7 +760,7 @@ FLAG DESCRIPTIONS
760
760
  expression when using custom evaluations.
761
761
  ```
762
762
 
763
- _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/test/results.ts)_
763
+ _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/test/results.ts)_
764
764
 
765
765
  ## `sf agent test resume`
766
766
 
@@ -833,7 +833,7 @@ FLAG DESCRIPTIONS
833
833
  expression when using custom evaluations.
834
834
  ```
835
835
 
836
- _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/test/resume.ts)_
836
+ _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/test/resume.ts)_
837
837
 
838
838
  ## `sf agent test run`
839
839
 
@@ -907,7 +907,7 @@ FLAG DESCRIPTIONS
907
907
  expression when using custom evaluations.
908
908
  ```
909
909
 
910
- _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/test/run.ts)_
910
+ _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/test/run.ts)_
911
911
 
912
912
  ## `sf agent validate authoring-bundle`
913
913
 
@@ -949,6 +949,6 @@ EXAMPLES
949
949
  $ sf agent validate authoring-bundle --api-name MyAuthoringBundle
950
950
  ```
951
951
 
952
- _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.2/src/commands/agent/validate/authoring-bundle.ts)_
952
+ _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.3/src/commands/agent/validate/authoring-bundle.ts)_
953
953
 
954
954
  <!-- commandsstop -->
@@ -124,7 +124,8 @@ export default class AgentPublishAuthoringBundle extends SfCommand {
124
124
  catch (error) {
125
125
  // Handle validation errors
126
126
  const err = SfError.wrap(error);
127
- const errorMessage = messages.getMessage('error.publishFailed', [err.message]);
127
+ const message = err.message ? err.message : err.name;
128
+ const errorMessage = messages.getMessage('error.publishFailed', [message]);
128
129
  // Stop the multi-stage output on error
129
130
  mso.error();
130
131
  this.error(errorMessage);
@@ -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,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,aAAa,EAA2B,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAmB,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAEhE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,gCAAgC,CAAC,CAAC;AAQrG,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,SAA4C;IAC5F,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAA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(), status: 'ERROR' });
119
119
  mso.error();
120
- this.log(messages.getMessage('error.compilationFailed', [formattedError]));
120
+ this.error(messages.getMessage('error.compilationFailed', [formattedError]));
121
121
  return {
122
122
  success: false,
123
123
  errors: err.message.split('\n'),
@@ -1 +1 @@
1
- {"version":3,"file":"authoring-bundle.js","sourceRoot":"","sources":["../../../../src/commands/agent/validate/authoring-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAmB,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEzE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,iCAAiC,CAAC,CAAC;AAOtG,MAAM,CAAC,OAAO,OAAO,4BAA6B,SAAQ,SAA6C;IAC9F,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,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AC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAChF,OAAO,KAAK,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC;YAC7C,CAAC,CAAC;iBACD,IAAI,CAAC,IAAI,CAAC,CAAC;YAEd,GAAG,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;YAC9D,GAAG,CAAC,KAAK,EAAE,CAAC;YAEZ,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;YAC7E,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;aAChC,CAAC;QACJ,CAAC;IACH,CAAC"}
@@ -803,174 +803,6 @@
803
803
  "test-spec:generate:agent"
804
804
  ]
805
805
  },
806
- "agent:publish:authoring-bundle": {
807
- "aliases": [],
808
- "args": {},
809
- "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 the authoring bundle metadata component is deployed to the org, and all associated agent metadata components, such as the Bot, BotVersion, and GenAiXXX components, are either created or updated. The org then either creates a new agent based on the deployed authoring bundle, or creates a new version of the agent if it already existed. Finally, all the new or changed metadata components associated with the new agent are retrieved back to your local DX project.\n\nThis command uses the API name of the authoring bundle. If you don't provide an API name with the --api-name flag, the command searches the current DX project and outputs a list of authoring bundles that it found for you to choose from.",
810
- "examples": [
811
- "Publish an authoring bundle with API name MyAuthoringBundle to the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --target-org my-org"
812
- ],
813
- "flags": {
814
- "json": {
815
- "description": "Format output as json.",
816
- "helpGroup": "GLOBAL",
817
- "name": "json",
818
- "allowNo": false,
819
- "type": "boolean"
820
- },
821
- "flags-dir": {
822
- "helpGroup": "GLOBAL",
823
- "name": "flags-dir",
824
- "summary": "Import flag values from a directory.",
825
- "hasDynamicHelp": false,
826
- "multiple": false,
827
- "type": "option"
828
- },
829
- "target-org": {
830
- "char": "o",
831
- "name": "target-org",
832
- "noCacheDefault": true,
833
- "required": true,
834
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
835
- "hasDynamicHelp": true,
836
- "multiple": false,
837
- "type": "option"
838
- },
839
- "api-version": {
840
- "description": "Override the api version used for api requests made by this command",
841
- "name": "api-version",
842
- "hasDynamicHelp": false,
843
- "multiple": false,
844
- "type": "option"
845
- },
846
- "api-name": {
847
- "char": "n",
848
- "name": "api-name",
849
- "summary": "API name of the authoring bundle you want to publish.",
850
- "hasDynamicHelp": false,
851
- "multiple": false,
852
- "type": "option"
853
- }
854
- },
855
- "hasDynamicHelp": true,
856
- "hiddenAliases": [],
857
- "id": "agent:publish:authoring-bundle",
858
- "pluginAlias": "@salesforce/plugin-agent",
859
- "pluginName": "@salesforce/plugin-agent",
860
- "pluginType": "core",
861
- "state": "beta",
862
- "strict": true,
863
- "summary": "Publish an authoring bundle to your org, which results in a new or updated agent.",
864
- "enableJsonFlag": true,
865
- "requiresProject": true,
866
- "FLAGGABLE_PROMPTS": {
867
- "api-name": {
868
- "message": "API name of the authoring bundle you want to publish.",
869
- "promptMessage": "API name of the authoring bundle to publish"
870
- }
871
- },
872
- "isESM": true,
873
- "relativePath": [
874
- "lib",
875
- "commands",
876
- "agent",
877
- "publish",
878
- "authoring-bundle.js"
879
- ],
880
- "aliasPermutations": [],
881
- "permutations": [
882
- "agent:publish:authoring-bundle",
883
- "publish:agent:authoring-bundle",
884
- "publish:authoring-bundle:agent",
885
- "agent:authoring-bundle:publish",
886
- "authoring-bundle:agent:publish",
887
- "authoring-bundle:publish:agent"
888
- ]
889
- },
890
- "agent:validate:authoring-bundle": {
891
- "aliases": [],
892
- "args": {},
893
- "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\nThis command validates that the Agent Script file in the authoring bundle compiles without errors so that you can later publish the bundle to your org. Use this command while you vibe code (modify with natural language) the Agent Script file to ensure that it's always valid. If the validation fails, the command outputs the list of syntax errors, a brief description of the error, and the location in the Agent Script file where the error occurred.\n\nThis command uses the API name of the authoring bundle. If you don't provide an API name with the --api-name flag, the command searches the current DX project and outputs a list of authoring bundles that it found for you to choose from.",
894
- "examples": [
895
- "Validate an authoring bundle with API name MyAuthoringBundle:\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringBundle"
896
- ],
897
- "flags": {
898
- "json": {
899
- "description": "Format output as json.",
900
- "helpGroup": "GLOBAL",
901
- "name": "json",
902
- "allowNo": false,
903
- "type": "boolean"
904
- },
905
- "flags-dir": {
906
- "helpGroup": "GLOBAL",
907
- "name": "flags-dir",
908
- "summary": "Import flag values from a directory.",
909
- "hasDynamicHelp": false,
910
- "multiple": false,
911
- "type": "option"
912
- },
913
- "target-org": {
914
- "char": "o",
915
- "name": "target-org",
916
- "noCacheDefault": true,
917
- "required": true,
918
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
919
- "hasDynamicHelp": true,
920
- "multiple": false,
921
- "type": "option"
922
- },
923
- "api-version": {
924
- "description": "Override the api version used for api requests made by this command",
925
- "name": "api-version",
926
- "hasDynamicHelp": false,
927
- "multiple": false,
928
- "type": "option"
929
- },
930
- "api-name": {
931
- "char": "n",
932
- "name": "api-name",
933
- "summary": "API name of the authoring bundle you want to validate.",
934
- "hasDynamicHelp": false,
935
- "multiple": false,
936
- "type": "option"
937
- }
938
- },
939
- "hasDynamicHelp": true,
940
- "hiddenAliases": [],
941
- "id": "agent:validate:authoring-bundle",
942
- "pluginAlias": "@salesforce/plugin-agent",
943
- "pluginName": "@salesforce/plugin-agent",
944
- "pluginType": "core",
945
- "state": "beta",
946
- "strict": true,
947
- "summary": "Validate an authoring bundle to ensure its Agent Script file compiles successfully and can be used to publish an agent.",
948
- "enableJsonFlag": true,
949
- "requiresProject": true,
950
- "FLAGGABLE_PROMPTS": {
951
- "api-name": {
952
- "message": "API name of the authoring bundle you want to validate.",
953
- "promptMessage": "API name of the authoring bundle to validate"
954
- }
955
- },
956
- "isESM": true,
957
- "relativePath": [
958
- "lib",
959
- "commands",
960
- "agent",
961
- "validate",
962
- "authoring-bundle.js"
963
- ],
964
- "aliasPermutations": [],
965
- "permutations": [
966
- "agent:validate:authoring-bundle",
967
- "validate:agent:authoring-bundle",
968
- "validate:authoring-bundle:agent",
969
- "agent:authoring-bundle:validate",
970
- "authoring-bundle:agent:validate",
971
- "authoring-bundle:validate:agent"
972
- ]
973
- },
974
806
  "agent:test:create": {
975
807
  "aliases": [],
976
808
  "args": {},
@@ -1484,7 +1316,175 @@
1484
1316
  "run:agent:test",
1485
1317
  "run:test:agent"
1486
1318
  ]
1319
+ },
1320
+ "agent:validate:authoring-bundle": {
1321
+ "aliases": [],
1322
+ "args": {},
1323
+ "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\nThis command validates that the Agent Script file in the authoring bundle compiles without errors so that you can later publish the bundle to your org. Use this command while you vibe code (modify with natural language) the Agent Script file to ensure that it's always valid. If the validation fails, the command outputs the list of syntax errors, a brief description of the error, and the location in the Agent Script file where the error occurred.\n\nThis command uses the API name of the authoring bundle. If you don't provide an API name with the --api-name flag, the command searches the current DX project and outputs a list of authoring bundles that it found for you to choose from.",
1324
+ "examples": [
1325
+ "Validate an authoring bundle with API name MyAuthoringBundle:\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringBundle"
1326
+ ],
1327
+ "flags": {
1328
+ "json": {
1329
+ "description": "Format output as json.",
1330
+ "helpGroup": "GLOBAL",
1331
+ "name": "json",
1332
+ "allowNo": false,
1333
+ "type": "boolean"
1334
+ },
1335
+ "flags-dir": {
1336
+ "helpGroup": "GLOBAL",
1337
+ "name": "flags-dir",
1338
+ "summary": "Import flag values from a directory.",
1339
+ "hasDynamicHelp": false,
1340
+ "multiple": false,
1341
+ "type": "option"
1342
+ },
1343
+ "target-org": {
1344
+ "char": "o",
1345
+ "name": "target-org",
1346
+ "noCacheDefault": true,
1347
+ "required": true,
1348
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1349
+ "hasDynamicHelp": true,
1350
+ "multiple": false,
1351
+ "type": "option"
1352
+ },
1353
+ "api-version": {
1354
+ "description": "Override the api version used for api requests made by this command",
1355
+ "name": "api-version",
1356
+ "hasDynamicHelp": false,
1357
+ "multiple": false,
1358
+ "type": "option"
1359
+ },
1360
+ "api-name": {
1361
+ "char": "n",
1362
+ "name": "api-name",
1363
+ "summary": "API name of the authoring bundle you want to validate.",
1364
+ "hasDynamicHelp": false,
1365
+ "multiple": false,
1366
+ "type": "option"
1367
+ }
1368
+ },
1369
+ "hasDynamicHelp": true,
1370
+ "hiddenAliases": [],
1371
+ "id": "agent:validate:authoring-bundle",
1372
+ "pluginAlias": "@salesforce/plugin-agent",
1373
+ "pluginName": "@salesforce/plugin-agent",
1374
+ "pluginType": "core",
1375
+ "state": "beta",
1376
+ "strict": true,
1377
+ "summary": "Validate an authoring bundle to ensure its Agent Script file compiles successfully and can be used to publish an agent.",
1378
+ "enableJsonFlag": true,
1379
+ "requiresProject": true,
1380
+ "FLAGGABLE_PROMPTS": {
1381
+ "api-name": {
1382
+ "message": "API name of the authoring bundle you want to validate.",
1383
+ "promptMessage": "API name of the authoring bundle to validate"
1384
+ }
1385
+ },
1386
+ "isESM": true,
1387
+ "relativePath": [
1388
+ "lib",
1389
+ "commands",
1390
+ "agent",
1391
+ "validate",
1392
+ "authoring-bundle.js"
1393
+ ],
1394
+ "aliasPermutations": [],
1395
+ "permutations": [
1396
+ "agent:validate:authoring-bundle",
1397
+ "validate:agent:authoring-bundle",
1398
+ "validate:authoring-bundle:agent",
1399
+ "agent:authoring-bundle:validate",
1400
+ "authoring-bundle:agent:validate",
1401
+ "authoring-bundle:validate:agent"
1402
+ ]
1403
+ },
1404
+ "agent:publish:authoring-bundle": {
1405
+ "aliases": [],
1406
+ "args": {},
1407
+ "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 the authoring bundle metadata component is deployed to the org, and all associated agent metadata components, such as the Bot, BotVersion, and GenAiXXX components, are either created or updated. The org then either creates a new agent based on the deployed authoring bundle, or creates a new version of the agent if it already existed. Finally, all the new or changed metadata components associated with the new agent are retrieved back to your local DX project.\n\nThis command uses the API name of the authoring bundle. If you don't provide an API name with the --api-name flag, the command searches the current DX project and outputs a list of authoring bundles that it found for you to choose from.",
1408
+ "examples": [
1409
+ "Publish an authoring bundle with API name MyAuthoringBundle to the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --target-org my-org"
1410
+ ],
1411
+ "flags": {
1412
+ "json": {
1413
+ "description": "Format output as json.",
1414
+ "helpGroup": "GLOBAL",
1415
+ "name": "json",
1416
+ "allowNo": false,
1417
+ "type": "boolean"
1418
+ },
1419
+ "flags-dir": {
1420
+ "helpGroup": "GLOBAL",
1421
+ "name": "flags-dir",
1422
+ "summary": "Import flag values from a directory.",
1423
+ "hasDynamicHelp": false,
1424
+ "multiple": false,
1425
+ "type": "option"
1426
+ },
1427
+ "target-org": {
1428
+ "char": "o",
1429
+ "name": "target-org",
1430
+ "noCacheDefault": true,
1431
+ "required": true,
1432
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1433
+ "hasDynamicHelp": true,
1434
+ "multiple": false,
1435
+ "type": "option"
1436
+ },
1437
+ "api-version": {
1438
+ "description": "Override the api version used for api requests made by this command",
1439
+ "name": "api-version",
1440
+ "hasDynamicHelp": false,
1441
+ "multiple": false,
1442
+ "type": "option"
1443
+ },
1444
+ "api-name": {
1445
+ "char": "n",
1446
+ "name": "api-name",
1447
+ "summary": "API name of the authoring bundle you want to publish.",
1448
+ "hasDynamicHelp": false,
1449
+ "multiple": false,
1450
+ "type": "option"
1451
+ }
1452
+ },
1453
+ "hasDynamicHelp": true,
1454
+ "hiddenAliases": [],
1455
+ "id": "agent:publish:authoring-bundle",
1456
+ "pluginAlias": "@salesforce/plugin-agent",
1457
+ "pluginName": "@salesforce/plugin-agent",
1458
+ "pluginType": "core",
1459
+ "state": "beta",
1460
+ "strict": true,
1461
+ "summary": "Publish an authoring bundle to your org, which results in a new or updated agent.",
1462
+ "enableJsonFlag": true,
1463
+ "requiresProject": true,
1464
+ "FLAGGABLE_PROMPTS": {
1465
+ "api-name": {
1466
+ "message": "API name of the authoring bundle you want to publish.",
1467
+ "promptMessage": "API name of the authoring bundle to publish"
1468
+ }
1469
+ },
1470
+ "isESM": true,
1471
+ "relativePath": [
1472
+ "lib",
1473
+ "commands",
1474
+ "agent",
1475
+ "publish",
1476
+ "authoring-bundle.js"
1477
+ ],
1478
+ "aliasPermutations": [],
1479
+ "permutations": [
1480
+ "agent:publish:authoring-bundle",
1481
+ "publish:agent:authoring-bundle",
1482
+ "publish:authoring-bundle:agent",
1483
+ "agent:authoring-bundle:publish",
1484
+ "authoring-bundle:agent:publish",
1485
+ "authoring-bundle:publish:agent"
1486
+ ]
1487
1487
  }
1488
1488
  },
1489
- "version": "1.24.14-nga.2"
1489
+ "version": "1.24.14-nga.3"
1490
1490
  }
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.24.14-nga.2",
4
+ "version": "1.24.14-nga.3",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -9,7 +9,7 @@
9
9
  "@inquirer/prompts": "^7.8.6",
10
10
  "@oclif/core": "^4",
11
11
  "@oclif/multi-stage-output": "^0.8.23",
12
- "@salesforce/agents": "0.18.3-nga.6",
12
+ "@salesforce/agents": "0.18.3-nga.7",
13
13
  "@salesforce/core": "^8.23.1",
14
14
  "@salesforce/kit": "^3.2.3",
15
15
  "@salesforce/sf-plugins-core": "^12.2.4",
@@ -231,7 +231,7 @@
231
231
  "exports": "./lib/index.js",
232
232
  "type": "module",
233
233
  "sfdx": {
234
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-nga.2.crt",
235
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-nga.2.sig"
234
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-nga.3.crt",
235
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-nga.3.sig"
236
236
  }
237
237
  }