@salesforce/plugin-agent 1.18.3 → 1.18.4
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 +15 -15
- package/lib/commands/agent/test/run.d.ts +1 -1
- package/lib/commands/agent/test/run.js +5 -5
- package/lib/commands/agent/test/run.js.map +1 -1
- package/messages/agent.test.run.md +6 -6
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +8 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -132,7 +132,7 @@ EXAMPLES
|
|
|
132
132
|
$ sf agent create --agent-name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
135
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.4/src/commands/agent/create.ts)_
|
|
136
136
|
|
|
137
137
|
## `sf agent generate agent-spec`
|
|
138
138
|
|
|
@@ -237,7 +237,7 @@ EXAMPLES
|
|
|
237
237
|
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
|
|
238
238
|
```
|
|
239
239
|
|
|
240
|
-
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
240
|
+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.4/src/commands/agent/generate/agent-spec.ts)_
|
|
241
241
|
|
|
242
242
|
## `sf agent generate template`
|
|
243
243
|
|
|
@@ -285,7 +285,7 @@ EXAMPLES
|
|
|
285
285
|
force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
|
|
286
286
|
```
|
|
287
287
|
|
|
288
|
-
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
288
|
+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.4/src/commands/agent/generate/template.ts)_
|
|
289
289
|
|
|
290
290
|
## `sf agent generate test-spec`
|
|
291
291
|
|
|
@@ -343,7 +343,7 @@ EXAMPLES
|
|
|
343
343
|
force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
|
|
344
344
|
```
|
|
345
345
|
|
|
346
|
-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
346
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.4/src/commands/agent/generate/test-spec.ts)_
|
|
347
347
|
|
|
348
348
|
## `sf agent preview`
|
|
349
349
|
|
|
@@ -378,7 +378,7 @@ FLAG DESCRIPTIONS
|
|
|
378
378
|
the API name of the agent? (TBD based on agents library)
|
|
379
379
|
```
|
|
380
380
|
|
|
381
|
-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
381
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.4/src/commands/agent/preview.ts)_
|
|
382
382
|
|
|
383
383
|
## `sf agent test create`
|
|
384
384
|
|
|
@@ -433,7 +433,7 @@ EXAMPLES
|
|
|
433
433
|
$ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --test-api-name Resort_Manager_Test --preview
|
|
434
434
|
```
|
|
435
435
|
|
|
436
|
-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
436
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.4/src/commands/agent/test/create.ts)_
|
|
437
437
|
|
|
438
438
|
## `sf agent test list`
|
|
439
439
|
|
|
@@ -468,7 +468,7 @@ EXAMPLES
|
|
|
468
468
|
$ sf agent test list --target-org my-org
|
|
469
469
|
```
|
|
470
470
|
|
|
471
|
-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
471
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.4/src/commands/agent/test/list.ts)_
|
|
472
472
|
|
|
473
473
|
## `sf agent test results`
|
|
474
474
|
|
|
@@ -524,7 +524,7 @@ FLAG DESCRIPTIONS
|
|
|
524
524
|
test results aren't written.
|
|
525
525
|
```
|
|
526
526
|
|
|
527
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
527
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.4/src/commands/agent/test/results.ts)_
|
|
528
528
|
|
|
529
529
|
## `sf agent test resume`
|
|
530
530
|
|
|
@@ -587,7 +587,7 @@ FLAG DESCRIPTIONS
|
|
|
587
587
|
test results aren't written.
|
|
588
588
|
```
|
|
589
589
|
|
|
590
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
590
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.4/src/commands/agent/test/resume.ts)_
|
|
591
591
|
|
|
592
592
|
## `sf agent test run`
|
|
593
593
|
|
|
@@ -600,7 +600,7 @@ USAGE
|
|
|
600
600
|
|
|
601
601
|
FLAGS
|
|
602
602
|
-d, --output-dir=<value> Directory to write the agent test results into.
|
|
603
|
-
-n, --name=<value>
|
|
603
|
+
-n, --api-name=<value> (required) API Name of the agent test to start.
|
|
604
604
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
605
605
|
configuration variable is already set.
|
|
606
606
|
-w, --wait=<value> Number of minutes to wait for the command to complete and display results to the
|
|
@@ -616,7 +616,7 @@ GLOBAL FLAGS
|
|
|
616
616
|
DESCRIPTION
|
|
617
617
|
Start an agent test in your org.
|
|
618
618
|
|
|
619
|
-
Use the --name flag to specify the name of the agent test you want to run. Use the output of the "agent test list"
|
|
619
|
+
Use the --api-name flag to specify the name of the agent test you want to run. Use the output of the "agent test list"
|
|
620
620
|
command to get the names of all the available agent tests in your org.
|
|
621
621
|
|
|
622
622
|
By default, this command starts the agent test in your org, but it doesn't wait for the test to finish. Instead, it
|
|
@@ -633,15 +633,15 @@ DESCRIPTION
|
|
|
633
633
|
EXAMPLES
|
|
634
634
|
Start an agent test called Resort_Manager_Test for an agent in your default org, don't wait for the test to finish:
|
|
635
635
|
|
|
636
|
-
$ sf agent test run --name Resort_Manager_Test
|
|
636
|
+
$ sf agent test run --api-name Resort_Manager_Test
|
|
637
637
|
|
|
638
638
|
Start an agent test for an agent in an org with alias "my-org" and wait for 10 minutes for the test to finish:
|
|
639
639
|
|
|
640
|
-
$ sf agent test run --name Resort_Manager_Test --wait 10 --target-org my-org
|
|
640
|
+
$ sf agent test run --api-name Resort_Manager_Test --wait 10 --target-org my-org
|
|
641
641
|
|
|
642
642
|
Start an agent test and write the JSON-formatted results into a directory called "test-results":
|
|
643
643
|
|
|
644
|
-
$ sf agent test run --name Resort_Manager_Test --wait 10 --output-dir ./test-results --result-format json
|
|
644
|
+
$ sf agent test run --api-name Resort_Manager_Test --wait 10 --output-dir ./test-results --result-format json
|
|
645
645
|
|
|
646
646
|
FLAG DESCRIPTIONS
|
|
647
647
|
-d, --output-dir=<value> Directory to write the agent test results into.
|
|
@@ -650,6 +650,6 @@ FLAG DESCRIPTIONS
|
|
|
650
650
|
test results aren't written.
|
|
651
651
|
```
|
|
652
652
|
|
|
653
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
653
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.4/src/commands/agent/test/run.ts)_
|
|
654
654
|
|
|
655
655
|
<!-- commandsstop -->
|
|
@@ -13,7 +13,7 @@ export default class AgentTestRun extends SfCommand<AgentTestRunResult> {
|
|
|
13
13
|
static readonly flags: {
|
|
14
14
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
15
|
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
-
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
'api-name': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
17
|
wait: import("@oclif/core/interfaces").OptionFlag<import("@salesforce/kit").Duration, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
18
|
'result-format': import("@oclif/core/interfaces").OptionFlag<"json" | "human" | "junit" | "tap", import("@oclif/core/interfaces").CustomOptions>;
|
|
19
19
|
'output-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -22,10 +22,10 @@ export default class AgentTestRun extends SfCommand {
|
|
|
22
22
|
static flags = {
|
|
23
23
|
'target-org': Flags.requiredOrg(),
|
|
24
24
|
'api-version': Flags.orgApiVersion(),
|
|
25
|
-
name: Flags.string({
|
|
25
|
+
'api-name': Flags.string({
|
|
26
26
|
char: 'n',
|
|
27
27
|
required: true,
|
|
28
|
-
summary: messages.getMessage('flags.name.summary'),
|
|
28
|
+
summary: messages.getMessage('flags.api-name.summary'),
|
|
29
29
|
}),
|
|
30
30
|
// we want to pass `undefined` to the API
|
|
31
31
|
// eslint-disable-next-line sf-plugin/flag-min-max-default
|
|
@@ -41,13 +41,13 @@ export default class AgentTestRun extends SfCommand {
|
|
|
41
41
|
mso;
|
|
42
42
|
async run() {
|
|
43
43
|
const { flags } = await this.parse(AgentTestRun);
|
|
44
|
-
this.mso = new TestStages({ title: `Agent Test Run: ${flags
|
|
44
|
+
this.mso = new TestStages({ title: `Agent Test Run: ${flags['api-name']}`, jsonEnabled: this.jsonEnabled() });
|
|
45
45
|
this.mso.start();
|
|
46
46
|
const agentTester = new AgentTester(flags['target-org'].getConnection(flags['api-version']));
|
|
47
|
-
const response = await agentTester.start(flags
|
|
47
|
+
const response = await agentTester.start(flags['api-name']);
|
|
48
48
|
this.mso.update({ id: response.runId });
|
|
49
49
|
const agentTestCache = await AgentTestCache.create();
|
|
50
|
-
await agentTestCache.createCacheEntry(response.runId, flags
|
|
50
|
+
await agentTestCache.createCacheEntry(response.runId, flags['api-name']);
|
|
51
51
|
if (flags.wait?.minutes) {
|
|
52
52
|
const { completed, response: detailsResponse } = await this.mso.poll(agentTester, response.runId, flags.wait);
|
|
53
53
|
if (completed)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../src/commands/agent/test/run.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAW,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,gBAAgB,CAAC,CAAC;AAQrF,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,SAA6B;IAC9D,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS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C,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC;QAClB,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC"}
|
|
@@ -4,15 +4,15 @@ Start an agent test in your org.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Use the --name flag to specify the name of the agent test you want to run. Use the output of the "agent test list" command to get the names of all the available agent tests in your org.
|
|
7
|
+
Use the --api-name flag to specify the name of the agent test you want to run. Use the output of the "agent test list" command to get the names of all the available agent tests in your org.
|
|
8
8
|
|
|
9
9
|
By default, this command starts the agent test in your org, but it doesn't wait for the test to finish. Instead, it displays the "agent test resume" command, with a job ID, that you execute to see the results of the test run, and then returns control of the terminal window to you. Use the --wait flag to specify the number of minutes for the command to wait for the agent test to complete; if the test completes by the end of the wait time, the command displays the test results. If not, run "agent test resume".
|
|
10
10
|
|
|
11
11
|
By default, this command outputs test results in human-readable tables for each test case, if the test completes in time. The tables show whether the test case passed, the expected and actual values, the test score, how long the test took, and more. Use the --result-format to display the test results in JSON or Junit format. Use the --output-dir flag to write the results to a file rather than to the terminal.
|
|
12
12
|
|
|
13
|
-
# flags.name.summary
|
|
13
|
+
# flags.api-name.summary
|
|
14
14
|
|
|
15
|
-
Name of the agent test to start.
|
|
15
|
+
API Name of the agent test to start.
|
|
16
16
|
|
|
17
17
|
# flags.wait.summary
|
|
18
18
|
|
|
@@ -22,12 +22,12 @@ Number of minutes to wait for the command to complete and display results to the
|
|
|
22
22
|
|
|
23
23
|
- Start an agent test called Resort_Manager_Test for an agent in your default org, don't wait for the test to finish:
|
|
24
24
|
|
|
25
|
-
<%= config.bin %> <%= command.id %> --name Resort_Manager_Test
|
|
25
|
+
<%= config.bin %> <%= command.id %> --api-name Resort_Manager_Test
|
|
26
26
|
|
|
27
27
|
- Start an agent test for an agent in an org with alias "my-org" and wait for 10 minutes for the test to finish:
|
|
28
28
|
|
|
29
|
-
<%= config.bin %> <%= command.id %> --name Resort_Manager_Test --wait 10 --target-org my-org
|
|
29
|
+
<%= config.bin %> <%= command.id %> --api-name Resort_Manager_Test --wait 10 --target-org my-org
|
|
30
30
|
|
|
31
31
|
- Start an agent test and write the JSON-formatted results into a directory called "test-results":
|
|
32
32
|
|
|
33
|
-
<%= config.bin %> <%= command.id %> --name Resort_Manager_Test --wait 10 --output-dir ./test-results --result-format json
|
|
33
|
+
<%= config.bin %> <%= command.id %> --api-name Resort_Manager_Test --wait 10 --output-dir ./test-results --result-format json
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/plugin-agent",
|
|
9
|
-
"version": "1.18.
|
|
9
|
+
"version": "1.18.4",
|
|
10
10
|
"license": "BSD-3-Clause",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@inquirer/core": "^10.1.6",
|
package/oclif.manifest.json
CHANGED
|
@@ -987,11 +987,11 @@
|
|
|
987
987
|
"agent:test:run": {
|
|
988
988
|
"aliases": [],
|
|
989
989
|
"args": {},
|
|
990
|
-
"description": "Use the --name flag to specify the name of the agent test you want to run. Use the output of the \"agent test list\" command to get the names of all the available agent tests in your org.\n\nBy default, this command starts the agent test in your org, but it doesn't wait for the test to finish. Instead, it displays the \"agent test resume\" command, with a job ID, that you execute to see the results of the test run, and then returns control of the terminal window to you. Use the --wait flag to specify the number of minutes for the command to wait for the agent test to complete; if the test completes by the end of the wait time, the command displays the test results. If not, run \"agent test resume\".\n\nBy default, this command outputs test results in human-readable tables for each test case, if the test completes in time. The tables show whether the test case passed, the expected and actual values, the test score, how long the test took, and more. Use the --result-format to display the test results in JSON or Junit format. Use the --output-dir flag to write the results to a file rather than to the terminal.",
|
|
990
|
+
"description": "Use the --api-name flag to specify the name of the agent test you want to run. Use the output of the \"agent test list\" command to get the names of all the available agent tests in your org.\n\nBy default, this command starts the agent test in your org, but it doesn't wait for the test to finish. Instead, it displays the \"agent test resume\" command, with a job ID, that you execute to see the results of the test run, and then returns control of the terminal window to you. Use the --wait flag to specify the number of minutes for the command to wait for the agent test to complete; if the test completes by the end of the wait time, the command displays the test results. If not, run \"agent test resume\".\n\nBy default, this command outputs test results in human-readable tables for each test case, if the test completes in time. The tables show whether the test case passed, the expected and actual values, the test score, how long the test took, and more. Use the --result-format to display the test results in JSON or Junit format. Use the --output-dir flag to write the results to a file rather than to the terminal.",
|
|
991
991
|
"examples": [
|
|
992
|
-
"Start an agent test called Resort_Manager_Test for an agent in your default org, don't wait for the test to finish:\n<%= config.bin %> <%= command.id %> --name Resort_Manager_Test",
|
|
993
|
-
"Start an agent test for an agent in an org with alias \"my-org\" and wait for 10 minutes for the test to finish:\n<%= config.bin %> <%= command.id %> --name Resort_Manager_Test --wait 10 --target-org my-org",
|
|
994
|
-
"Start an agent test and write the JSON-formatted results into a directory called \"test-results\":\n<%= config.bin %> <%= command.id %> --name Resort_Manager_Test --wait 10 --output-dir ./test-results --result-format json"
|
|
992
|
+
"Start an agent test called Resort_Manager_Test for an agent in your default org, don't wait for the test to finish:\n<%= config.bin %> <%= command.id %> --api-name Resort_Manager_Test",
|
|
993
|
+
"Start an agent test for an agent in an org with alias \"my-org\" and wait for 10 minutes for the test to finish:\n<%= config.bin %> <%= command.id %> --api-name Resort_Manager_Test --wait 10 --target-org my-org",
|
|
994
|
+
"Start an agent test and write the JSON-formatted results into a directory called \"test-results\":\n<%= config.bin %> <%= command.id %> --api-name Resort_Manager_Test --wait 10 --output-dir ./test-results --result-format json"
|
|
995
995
|
],
|
|
996
996
|
"flags": {
|
|
997
997
|
"json": {
|
|
@@ -1026,11 +1026,11 @@
|
|
|
1026
1026
|
"multiple": false,
|
|
1027
1027
|
"type": "option"
|
|
1028
1028
|
},
|
|
1029
|
-
"name": {
|
|
1029
|
+
"api-name": {
|
|
1030
1030
|
"char": "n",
|
|
1031
|
-
"name": "name",
|
|
1031
|
+
"name": "api-name",
|
|
1032
1032
|
"required": true,
|
|
1033
|
-
"summary": "Name of the agent test to start.",
|
|
1033
|
+
"summary": "API Name of the agent test to start.",
|
|
1034
1034
|
"hasDynamicHelp": false,
|
|
1035
1035
|
"multiple": false,
|
|
1036
1036
|
"type": "option"
|
|
@@ -1096,5 +1096,5 @@
|
|
|
1096
1096
|
]
|
|
1097
1097
|
}
|
|
1098
1098
|
},
|
|
1099
|
-
"version": "1.18.
|
|
1099
|
+
"version": "1.18.4"
|
|
1100
1100
|
}
|
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.18.
|
|
4
|
+
"version": "1.18.4",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
"exports": "./lib/index.js",
|
|
230
230
|
"type": "module",
|
|
231
231
|
"sfdx": {
|
|
232
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.
|
|
233
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.
|
|
232
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.4.crt",
|
|
233
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.4.sig"
|
|
234
234
|
}
|
|
235
235
|
}
|