@salesforce/plugin-agent 1.35.0 → 1.36.1
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 +67 -25
- package/lib/agentTestCache.d.ts +4 -1
- package/lib/agentTestCache.js +2 -2
- package/lib/agentTestCache.js.map +1 -1
- package/lib/commands/agent/publish/authoring-bundle.d.ts +8 -0
- package/lib/commands/agent/publish/authoring-bundle.js +51 -0
- package/lib/commands/agent/publish/authoring-bundle.js.map +1 -1
- package/lib/commands/agent/test/list.js +6 -1
- package/lib/commands/agent/test/list.js.map +1 -1
- package/lib/commands/agent/test/results.d.ts +3 -2
- package/lib/commands/agent/test/results.js +5 -3
- package/lib/commands/agent/test/results.js.map +1 -1
- package/lib/commands/agent/test/resume.d.ts +1 -0
- package/lib/commands/agent/test/resume.js +12 -4
- package/lib/commands/agent/test/resume.js.map +1 -1
- package/lib/commands/agent/test/run.d.ts +1 -0
- package/lib/commands/agent/test/run.js +21 -8
- package/lib/commands/agent/test/run.js.map +1 -1
- package/lib/flags.d.ts +6 -1
- package/lib/flags.js +21 -4
- package/lib/flags.js.map +1 -1
- package/lib/handleTestResults.d.ts +4 -2
- package/lib/handleTestResults.js +137 -5
- package/lib/handleTestResults.js.map +1 -1
- package/lib/testRunnerFactory.d.ts +7 -0
- package/lib/testRunnerFactory.js +30 -0
- package/lib/testRunnerFactory.js.map +1 -0
- package/lib/testStages.d.ts +4 -3
- package/lib/testStages.js.map +1 -1
- package/messages/agent.publish.authoring-bundle.md +16 -0
- package/messages/agent.test.list.md +1 -1
- package/messages/shared.md +8 -0
- package/oclif.manifest.json +60 -3
- package/package.json +5 -5
- package/schemas/agent-activate.json +5 -2
- package/schemas/agent-create.json +39 -8
- package/schemas/agent-deactivate.json +5 -2
- package/schemas/agent-generate-agent__spec.json +18 -4
- package/schemas/agent-generate-authoring__bundle.json +6 -2
- package/schemas/agent-generate-template.json +5 -2
- package/schemas/agent-preview-end.json +5 -2
- package/schemas/agent-preview-send.json +6 -2
- package/schemas/agent-preview-sessions.json +10 -3
- package/schemas/agent-preview-start.json +5 -2
- package/schemas/agent-preview.json +1 -1
- package/schemas/agent-publish-authoring__bundle.json +25 -0
- package/schemas/agent-test-create.json +5 -2
- package/schemas/agent-test-list.json +1 -1
- package/schemas/agent-test-results.json +111 -10
- package/schemas/agent-test-resume.json +113 -10
- package/schemas/agent-test-run.json +113 -10
- package/schemas/agent-test-run__eval.json +17 -4
- package/schemas/agent-validate-authoring__bundle.json +4 -2
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.
|
|
129
|
+
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
196
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
237
|
+
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
344
|
+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
421
|
+
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
483
|
+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
548
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
621
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
676
|
+
_See code: [src/commands/agent/preview/end.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
734
|
+
_See code: [src/commands/agent/preview/send.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
767
|
+
_See code: [src/commands/agent/preview/sessions.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
832
|
+
_See code: [src/commands/agent/preview/start.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
892
|
+
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/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.
|
|
947
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/src/commands/agent/test/create.ts)_
|
|
937
948
|
|
|
938
949
|
## `sf agent test list`
|
|
939
950
|
|
|
@@ -955,8 +966,8 @@ GLOBAL FLAGS
|
|
|
955
966
|
DESCRIPTION
|
|
956
967
|
List the available agent tests in your org.
|
|
957
968
|
|
|
958
|
-
The command outputs a table with the name (API name) of each test along with its unique ID
|
|
959
|
-
in the org.
|
|
969
|
+
The command outputs a table with the name (API name) of each test along with its unique ID, type ('agentforce-studio'
|
|
970
|
+
or 'testing-center'), and the date it was created in the org.
|
|
960
971
|
|
|
961
972
|
EXAMPLES
|
|
962
973
|
List the agent tests in your default org:
|
|
@@ -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.
|
|
982
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/src/commands/agent/test/list.ts)_
|
|
972
983
|
|
|
973
984
|
## `sf agent test results`
|
|
974
985
|
|
|
@@ -977,7 +988,7 @@ Get the results of a completed agent test run.
|
|
|
977
988
|
```
|
|
978
989
|
USAGE
|
|
979
990
|
$ sf agent test results -o <value> -i <value> [--json] [--flags-dir <value>] [--api-version <value>] [--result-format
|
|
980
|
-
json|human|junit|tap] [-d <value>] [--verbose]
|
|
991
|
+
json|human|junit|tap] [-d <value>] [--test-runner agentforce-studio|testing-center] [--verbose]
|
|
981
992
|
|
|
982
993
|
FLAGS
|
|
983
994
|
-d, --output-dir=<value> Directory to write the agent test results into.
|
|
@@ -987,6 +998,8 @@ FLAGS
|
|
|
987
998
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
988
999
|
--result-format=<option> [default: human] Format of the agent test run results.
|
|
989
1000
|
<options: json|human|junit|tap>
|
|
1001
|
+
--test-runner=<option> Explicitly specify which test runner to use (agentforce-studio or testing-center).
|
|
1002
|
+
<options: agentforce-studio|testing-center>
|
|
990
1003
|
--verbose Show generated data in the test results output.
|
|
991
1004
|
|
|
992
1005
|
GLOBAL FLAGS
|
|
@@ -1024,6 +1037,14 @@ FLAG DESCRIPTIONS
|
|
|
1024
1037
|
If the agent test run completes, write the results to the specified directory. If the test is still running, the
|
|
1025
1038
|
test results aren't written.
|
|
1026
1039
|
|
|
1040
|
+
--test-runner=agentforce-studio|testing-center
|
|
1041
|
+
|
|
1042
|
+
Explicitly specify which test runner to use (agentforce-studio or testing-center).
|
|
1043
|
+
|
|
1044
|
+
By default, the command automatically detects which test runner to use based on the test definition metadata type in
|
|
1045
|
+
your org. Use this flag to explicitly specify the runner type. 'agentforce-studio' uses AiTestingDefinition
|
|
1046
|
+
metadata. 'testing-center' uses AiEvaluationDefinition metadata.
|
|
1047
|
+
|
|
1027
1048
|
--verbose Show generated data in the test results output.
|
|
1028
1049
|
|
|
1029
1050
|
When enabled, includes detailed generated data (such as invoked actions) in the human-readable test results output.
|
|
@@ -1034,7 +1055,7 @@ FLAG DESCRIPTIONS
|
|
|
1034
1055
|
expression when using custom evaluations.
|
|
1035
1056
|
```
|
|
1036
1057
|
|
|
1037
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.
|
|
1058
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/src/commands/agent/test/results.ts)_
|
|
1038
1059
|
|
|
1039
1060
|
## `sf agent test resume`
|
|
1040
1061
|
|
|
@@ -1043,7 +1064,8 @@ Resume an agent test that you previously started in your org so you can view the
|
|
|
1043
1064
|
```
|
|
1044
1065
|
USAGE
|
|
1045
1066
|
$ sf agent test resume -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-i <value>] [-r] [-w
|
|
1046
|
-
<value>] [--result-format json|human|junit|tap] [-d <value>] [--
|
|
1067
|
+
<value>] [--result-format json|human|junit|tap] [-d <value>] [--test-runner agentforce-studio|testing-center]
|
|
1068
|
+
[--verbose]
|
|
1047
1069
|
|
|
1048
1070
|
FLAGS
|
|
1049
1071
|
-d, --output-dir=<value> Directory to write the agent test results into.
|
|
@@ -1056,6 +1078,8 @@ FLAGS
|
|
|
1056
1078
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
1057
1079
|
--result-format=<option> [default: human] Format of the agent test run results.
|
|
1058
1080
|
<options: json|human|junit|tap>
|
|
1081
|
+
--test-runner=<option> Explicitly specify which test runner to use (agentforce-studio or testing-center).
|
|
1082
|
+
<options: agentforce-studio|testing-center>
|
|
1059
1083
|
--verbose Show generated data in the test results output.
|
|
1060
1084
|
|
|
1061
1085
|
GLOBAL FLAGS
|
|
@@ -1097,6 +1121,14 @@ FLAG DESCRIPTIONS
|
|
|
1097
1121
|
If the agent test run completes, write the results to the specified directory. If the test is still running, the
|
|
1098
1122
|
test results aren't written.
|
|
1099
1123
|
|
|
1124
|
+
--test-runner=agentforce-studio|testing-center
|
|
1125
|
+
|
|
1126
|
+
Explicitly specify which test runner to use (agentforce-studio or testing-center).
|
|
1127
|
+
|
|
1128
|
+
By default, the command automatically detects which test runner to use based on the test definition metadata type in
|
|
1129
|
+
your org. Use this flag to explicitly specify the runner type. 'agentforce-studio' uses AiTestingDefinition
|
|
1130
|
+
metadata. 'testing-center' uses AiEvaluationDefinition metadata.
|
|
1131
|
+
|
|
1100
1132
|
--verbose Show generated data in the test results output.
|
|
1101
1133
|
|
|
1102
1134
|
When enabled, includes detailed generated data (such as invoked actions) in the human-readable test results output.
|
|
@@ -1107,7 +1139,7 @@ FLAG DESCRIPTIONS
|
|
|
1107
1139
|
expression when using custom evaluations.
|
|
1108
1140
|
```
|
|
1109
1141
|
|
|
1110
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.
|
|
1142
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/src/commands/agent/test/resume.ts)_
|
|
1111
1143
|
|
|
1112
1144
|
## `sf agent test run`
|
|
1113
1145
|
|
|
@@ -1116,7 +1148,7 @@ Start an agent test in your org.
|
|
|
1116
1148
|
```
|
|
1117
1149
|
USAGE
|
|
1118
1150
|
$ sf agent test run -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>] [-w <value>]
|
|
1119
|
-
[--result-format json|human|junit|tap] [-d <value>] [--verbose]
|
|
1151
|
+
[--result-format json|human|junit|tap] [-d <value>] [--test-runner agentforce-studio|testing-center] [--verbose]
|
|
1120
1152
|
|
|
1121
1153
|
FLAGS
|
|
1122
1154
|
-d, --output-dir=<value> Directory to write the agent test results into.
|
|
@@ -1129,6 +1161,8 @@ FLAGS
|
|
|
1129
1161
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
1130
1162
|
--result-format=<option> [default: human] Format of the agent test run results.
|
|
1131
1163
|
<options: json|human|junit|tap>
|
|
1164
|
+
--test-runner=<option> Explicitly specify which test runner to use (agentforce-studio or testing-center).
|
|
1165
|
+
<options: agentforce-studio|testing-center>
|
|
1132
1166
|
--verbose Show generated data in the test results output.
|
|
1133
1167
|
|
|
1134
1168
|
GLOBAL FLAGS
|
|
@@ -1171,6 +1205,14 @@ FLAG DESCRIPTIONS
|
|
|
1171
1205
|
If the agent test run completes, write the results to the specified directory. If the test is still running, the
|
|
1172
1206
|
test results aren't written.
|
|
1173
1207
|
|
|
1208
|
+
--test-runner=agentforce-studio|testing-center
|
|
1209
|
+
|
|
1210
|
+
Explicitly specify which test runner to use (agentforce-studio or testing-center).
|
|
1211
|
+
|
|
1212
|
+
By default, the command automatically detects which test runner to use based on the test definition metadata type in
|
|
1213
|
+
your org. Use this flag to explicitly specify the runner type. 'agentforce-studio' uses AiTestingDefinition
|
|
1214
|
+
metadata. 'testing-center' uses AiEvaluationDefinition metadata.
|
|
1215
|
+
|
|
1174
1216
|
--verbose Show generated data in the test results output.
|
|
1175
1217
|
|
|
1176
1218
|
When enabled, includes detailed generated data (such as invoked actions) in the human-readable test results output.
|
|
@@ -1181,7 +1223,7 @@ FLAG DESCRIPTIONS
|
|
|
1181
1223
|
expression when using custom evaluations.
|
|
1182
1224
|
```
|
|
1183
1225
|
|
|
1184
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.
|
|
1226
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/src/commands/agent/test/run.ts)_
|
|
1185
1227
|
|
|
1186
1228
|
## `sf agent validate authoring-bundle`
|
|
1187
1229
|
|
|
@@ -1228,6 +1270,6 @@ EXAMPLES
|
|
|
1228
1270
|
$ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
|
|
1229
1271
|
```
|
|
1230
1272
|
|
|
1231
|
-
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.
|
|
1273
|
+
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.36.1/src/commands/agent/validate/authoring-bundle.ts)_
|
|
1232
1274
|
|
|
1233
1275
|
<!-- commandsstop -->
|
package/lib/agentTestCache.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { TTLConfig } from '@salesforce/core';
|
|
2
|
+
import type { TestRunnerType } from '@salesforce/agents';
|
|
2
3
|
type ResultFormat = 'json' | 'human' | 'junit' | 'tap';
|
|
3
4
|
type CacheContents = {
|
|
4
5
|
runId: string;
|
|
5
6
|
name: string;
|
|
6
7
|
outputDir?: string;
|
|
7
8
|
resultFormat?: ResultFormat;
|
|
9
|
+
runnerType?: TestRunnerType;
|
|
8
10
|
};
|
|
9
11
|
export declare class AgentTestCache extends TTLConfig<TTLConfig.Options, CacheContents> {
|
|
10
12
|
static getFileName(): string;
|
|
11
13
|
static getDefaultOptions(): TTLConfig.Options;
|
|
12
|
-
createCacheEntry(runId: string, name: string, outputDir?: string, resultFormat?: ResultFormat): Promise<void>;
|
|
14
|
+
createCacheEntry(runId: string, name: string, outputDir?: string, resultFormat?: ResultFormat, runnerType?: TestRunnerType): Promise<void>;
|
|
13
15
|
removeCacheEntry(runId: string): Promise<void>;
|
|
14
16
|
resolveFromCache(): CacheContents;
|
|
15
17
|
useIdOrMostRecent(runId: string | undefined, useMostRecent: boolean): {
|
|
@@ -17,6 +19,7 @@ export declare class AgentTestCache extends TTLConfig<TTLConfig.Options, CacheCo
|
|
|
17
19
|
name?: string;
|
|
18
20
|
outputDir?: string;
|
|
19
21
|
resultFormat?: ResultFormat;
|
|
22
|
+
runnerType?: TestRunnerType;
|
|
20
23
|
};
|
|
21
24
|
}
|
|
22
25
|
export {};
|
package/lib/agentTestCache.js
CHANGED
|
@@ -28,10 +28,10 @@ export class AgentTestCache extends TTLConfig {
|
|
|
28
28
|
ttl: Duration.days(7),
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
async createCacheEntry(runId, name, outputDir, resultFormat) {
|
|
31
|
+
async createCacheEntry(runId, name, outputDir, resultFormat, runnerType) {
|
|
32
32
|
if (!runId)
|
|
33
33
|
throw new SfError('runId is required to create a cache entry');
|
|
34
|
-
this.set(runId, { runId, name, outputDir, resultFormat });
|
|
34
|
+
this.set(runId, { runId, name, outputDir, resultFormat, runnerType });
|
|
35
35
|
await this.write();
|
|
36
36
|
}
|
|
37
37
|
async removeCacheEntry(runId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentTestCache.js","sourceRoot":"","sources":["../src/agentTestCache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"agentTestCache.js","sourceRoot":"","sources":["../src/agentTestCache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAa3C,MAAM,OAAO,cAAe,SAAQ,SAA2C;IACtE,MAAM,CAAC,WAAW;QACvB,OAAO,uBAAuB,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,iBAAiB;QAC7B,OAAO;YACL,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,cAAc,CAAC,WAAW,EAAE;YACtC,WAAW,E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,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;QACvD,CAAC;QAED,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;CACF"}
|
|
@@ -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,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAA6C,MAAM,oCAAoC,CAAC;AAC9G,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;
|
|
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,OAAO,EAAE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B,CAAC,CAAC;gBACvE,MAAM,OAAO,CAAC,MAAM,CAAC;oBACnB,IAAI,EAAE,mBAAmB;oBACzB,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,WAAY,KAAK,CAAC,CAAC,OAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;iBAC5E,CAAC,CAAC;YACL,CAAC;YACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC,CAAC,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"}
|
|
@@ -41,11 +41,16 @@ export default class AgentTestList extends SfCommand {
|
|
|
41
41
|
const wrapped = SfError.wrap(error);
|
|
42
42
|
throw new SfError(`Failed to retrieve agent tests: ${wrapped.message}`, 'ListRetrievalFailed', [wrapped.message], 4, wrapped);
|
|
43
43
|
}
|
|
44
|
+
const rows = results.map((r) => ({
|
|
45
|
+
...r,
|
|
46
|
+
type: r.type === 'AiEvaluationDefinition' ? 'testing-center' : 'agentforce-studio',
|
|
47
|
+
}));
|
|
44
48
|
this.table({
|
|
45
|
-
data:
|
|
49
|
+
data: rows,
|
|
46
50
|
columns: [
|
|
47
51
|
{ key: 'fullName', name: 'API Name' },
|
|
48
52
|
{ key: 'id', name: 'Id' },
|
|
53
|
+
{ key: 'type', name: 'Type' },
|
|
49
54
|
{ key: 'createdDate', name: 'Created Date' },
|
|
50
55
|
],
|
|
51
56
|
sort: { fullName: 'asc' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/agent/test/list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAA4B,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE1E,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,iBAAiB,CAAC,CAAC;AAItF,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAA8B;IAChE,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;IAE5D,MAAM,CAAU,mBAAmB,GAAG,aAAa,CACxD,uBAAuB,EACvB,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AC,OAAO,CAAC,EACjB,CAAC,EACD,OAAO,CACR,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC/B,GAAG,CAAC;YACJ,IAAI,EAAE,CAAC,CAAC,IAAI,KAAK,wBAAwB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,mBAAmB;SACnF,CAAC,CAAC,CAAC;QAEJ,IAAI,CAAC,KAAK,CAAC;YACT,IAAI,EAAE,IAAI;YACV,OAAO,EAAE;gBACP,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE;gBACrC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;gBACzB,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;gBAC7B,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,cAAc,EAAE;aAC7C;YACD,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE;SAC1B,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IACjB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { AgentTestResultsResponse } from '@salesforce/agents';
|
|
3
|
-
export type AgentTestResultsResult = AgentTestResultsResponse;
|
|
2
|
+
import { AgentTestResultsResponse, AgentforceStudioTestResultsResponse } from '@salesforce/agents';
|
|
3
|
+
export type AgentTestResultsResult = AgentTestResultsResponse | AgentforceStudioTestResultsResponse;
|
|
4
4
|
export default class AgentTestResults extends SfCommand<AgentTestResultsResult> {
|
|
5
5
|
static readonly summary: string;
|
|
6
6
|
static readonly description: string;
|
|
@@ -13,6 +13,7 @@ export default class AgentTestResults extends SfCommand<AgentTestResultsResult>
|
|
|
13
13
|
'job-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
14
|
'result-format': import("@oclif/core/interfaces").OptionFlag<"json" | "human" | "junit" | "tap", import("@oclif/core/interfaces").CustomOptions>;
|
|
15
15
|
'output-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
'test-runner': import("@oclif/core/interfaces").OptionFlag<"agentforce-studio" | "testing-center" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
17
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
18
|
};
|
|
18
19
|
run(): Promise<AgentTestResultsResult>;
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { SfCommand, Flags, toHelpSection } from '@salesforce/sf-plugins-core';
|
|
17
17
|
import { EnvironmentVariable, Messages, SfError } from '@salesforce/core';
|
|
18
|
-
import {
|
|
19
|
-
import { resultFormatFlag, testOutputDirFlag, verboseFlag } from '../../../flags.js';
|
|
18
|
+
import { resultFormatFlag, testOutputDirFlag, testRunnerFlag, verboseFlag } from '../../../flags.js';
|
|
20
19
|
import { handleTestResults } from '../../../handleTestResults.js';
|
|
20
|
+
import { createTestRunner } from '../../../testRunnerFactory.js';
|
|
21
21
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
22
22
|
const messages = Messages.loadMessages('@salesforce/plugin-agent', 'agent.test.results');
|
|
23
23
|
export default class AgentTestResults extends SfCommand {
|
|
@@ -40,11 +40,13 @@ export default class AgentTestResults extends SfCommand {
|
|
|
40
40
|
}),
|
|
41
41
|
'result-format': resultFormatFlag(),
|
|
42
42
|
'output-dir': testOutputDirFlag(),
|
|
43
|
+
'test-runner': testRunnerFlag,
|
|
43
44
|
verbose: verboseFlag,
|
|
44
45
|
};
|
|
45
46
|
async run() {
|
|
46
47
|
const { flags } = await this.parse(AgentTestResults);
|
|
47
|
-
const
|
|
48
|
+
const connection = flags['target-org'].getConnection(flags['api-version']);
|
|
49
|
+
const { runner: agentTester } = await createTestRunner(connection, flags['test-runner'], undefined, flags['job-id']);
|
|
48
50
|
let response;
|
|
49
51
|
try {
|
|
50
52
|
response = await agentTester.results(flags['job-id']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"results.js","sourceRoot":"","sources":["../../../../src/commands/agent/test/results.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"results.js","sourceRoot":"","sources":["../../../../src/commands/agent/test/results.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE1E,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrG,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,oBAAoB,CAAC,CAAC;AAIzF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,SAAiC;IACtE,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,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KAAK,EAAE,CAAC;YACf,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAEpC,iCAAiC;YACjC,IACE,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC;gBACnD,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC;gBACjD,OAAO,CAAC,IAAI,KAAK,QAAQ,EACzB,CAAC;gBACD,MAAM,IAAI,OAAO,CAAC,WAAW,KAAK,CAAC,QAAQ,CAAC,yBAAyB,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;YACxG,CAAC;YAED,uBAAuB;YACvB,MAAM,IAAI,OAAO,CACf,+BAA+B,OAAO,CAAC,OAAO,EAAE,EAChD,wBAAwB,EACxB,CAAC,OAAO,CAAC,OAAO,CAAC,EACjB,CAAC,EACD,OAAO,CACR,CAAC;QACJ,CAAC;QAED,MAAM,iBAAiB,CAAC;YACtB,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC;YACnB,MAAM,EAAE,KAAK,CAAC,eAAe,CAAC;YAC9B,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;YAC/B,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;YAC9B,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC;IAClB,CAAC"}
|
|
@@ -16,6 +16,7 @@ export default class AgentTestResume extends SfCommand<AgentTestRunResult> {
|
|
|
16
16
|
wait: import("@oclif/core/interfaces").OptionFlag<import("@salesforce/kit").Duration, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
17
|
'result-format': import("@oclif/core/interfaces").OptionFlag<"json" | "human" | "junit" | "tap", import("@oclif/core/interfaces").CustomOptions>;
|
|
18
18
|
'output-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'test-runner': import("@oclif/core/interfaces").OptionFlag<"agentforce-studio" | "testing-center" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
20
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
20
21
|
};
|
|
21
22
|
private mso;
|