@salesforce/plugin-agent 1.18.2 → 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 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.2/src/commands/agent/create.ts)_
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.2/src/commands/agent/generate/agent-spec.ts)_
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
 
@@ -245,13 +245,10 @@ Generate an agent template from an existing agent in your DX project so you can
245
245
 
246
246
  ```
247
247
  USAGE
248
- $ sf agent generate template -o <value> --agent-version <value> -f <value> [--json] [--flags-dir <value>] [--api-version
249
- <value>]
248
+ $ sf agent generate template --agent-version <value> -f <value> [--json] [--flags-dir <value>] [--api-version <value>]
250
249
 
251
250
  FLAGS
252
251
  -f, --agent-file=<value> (required) Path to an agent (Bot) metadata file.
253
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
254
- configuration variable is already set.
255
252
  --agent-version=<value> (required) Version of the agent (BotVersion).
256
253
  --api-version=<value> Override the api version used for api requests made by this command
257
254
 
@@ -288,7 +285,7 @@ EXAMPLES
288
285
  force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
289
286
  ```
290
287
 
291
- _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/generate/template.ts)_
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)_
292
289
 
293
290
  ## `sf agent generate test-spec`
294
291
 
@@ -346,7 +343,7 @@ EXAMPLES
346
343
  force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
347
344
  ```
348
345
 
349
- _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/generate/test-spec.ts)_
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)_
350
347
 
351
348
  ## `sf agent preview`
352
349
 
@@ -381,7 +378,7 @@ FLAG DESCRIPTIONS
381
378
  the API name of the agent? (TBD based on agents library)
382
379
  ```
383
380
 
384
- _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/preview.ts)_
381
+ _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.4/src/commands/agent/preview.ts)_
385
382
 
386
383
  ## `sf agent test create`
387
384
 
@@ -436,7 +433,7 @@ EXAMPLES
436
433
  $ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --test-api-name Resort_Manager_Test --preview
437
434
  ```
438
435
 
439
- _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/test/create.ts)_
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)_
440
437
 
441
438
  ## `sf agent test list`
442
439
 
@@ -471,7 +468,7 @@ EXAMPLES
471
468
  $ sf agent test list --target-org my-org
472
469
  ```
473
470
 
474
- _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/test/list.ts)_
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)_
475
472
 
476
473
  ## `sf agent test results`
477
474
 
@@ -527,7 +524,7 @@ FLAG DESCRIPTIONS
527
524
  test results aren't written.
528
525
  ```
529
526
 
530
- _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/test/results.ts)_
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)_
531
528
 
532
529
  ## `sf agent test resume`
533
530
 
@@ -590,7 +587,7 @@ FLAG DESCRIPTIONS
590
587
  test results aren't written.
591
588
  ```
592
589
 
593
- _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/test/resume.ts)_
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)_
594
591
 
595
592
  ## `sf agent test run`
596
593
 
@@ -603,7 +600,7 @@ USAGE
603
600
 
604
601
  FLAGS
605
602
  -d, --output-dir=<value> Directory to write the agent test results into.
606
- -n, --name=<value> (required) Name of the agent test to start.
603
+ -n, --api-name=<value> (required) API Name of the agent test to start.
607
604
  -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
608
605
  configuration variable is already set.
609
606
  -w, --wait=<value> Number of minutes to wait for the command to complete and display results to the
@@ -619,7 +616,7 @@ GLOBAL FLAGS
619
616
  DESCRIPTION
620
617
  Start an agent test in your org.
621
618
 
622
- 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"
623
620
  command to get the names of all the available agent tests in your org.
624
621
 
625
622
  By default, this command starts the agent test in your org, but it doesn't wait for the test to finish. Instead, it
@@ -636,15 +633,15 @@ DESCRIPTION
636
633
  EXAMPLES
637
634
  Start an agent test called Resort_Manager_Test for an agent in your default org, don't wait for the test to finish:
638
635
 
639
- $ sf agent test run --name Resort_Manager_Test
636
+ $ sf agent test run --api-name Resort_Manager_Test
640
637
 
641
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:
642
639
 
643
- $ 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
644
641
 
645
642
  Start an agent test and write the JSON-formatted results into a directory called "test-results":
646
643
 
647
- $ 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
648
645
 
649
646
  FLAG DESCRIPTIONS
650
647
  -d, --output-dir=<value> Directory to write the agent test results into.
@@ -653,6 +650,6 @@ FLAG DESCRIPTIONS
653
650
  test results aren't written.
654
651
  ```
655
652
 
656
- _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/test/run.ts)_
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)_
657
654
 
658
655
  <!-- commandsstop -->
@@ -10,7 +10,6 @@ export default class AgentGenerateTemplate extends SfCommand<AgentGenerateTempla
10
10
  static state: string;
11
11
  static readonly requiresProject = true;
12
12
  static readonly flags: {
13
- 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
14
13
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
14
  'agent-version': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
16
15
  'agent-file': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
@@ -18,7 +18,6 @@ export default class AgentGenerateTemplate extends SfCommand {
18
18
  static state = 'beta';
19
19
  static requiresProject = true;
20
20
  static flags = {
21
- 'target-org': Flags.requiredOrg(),
22
21
  'api-version': Flags.orgApiVersion(),
23
22
  'agent-version': Flags.integer({
24
23
  summary: messages.getMessage('flags.agent-version.summary'),
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/commands/agent/generate/template.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAiCxD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,yBAAyB,CAAC,CAAC;AAM9F,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,SAAsC;IAChF,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,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC;IACtB,MAAM,CAAU,eAAe,GAAG,IAAI,CAAC;IAEvC,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AAE,KAAK;oBACvB,QAAQ,EAAE,EAAE;iBACb;gBACD,eAAe;aAChB;YACD,yBAAyB;YACzB,WAAW;YACX,QAAQ;YACR,GAAG,GAAG,CAAC,GAAG;SACX;KACF,CAAC;IAEF,kFAAkF;IAClF,WAAW,CAAC,WAAW,CAAC,QAAS,CAAC,IAAI,GAAG,eAAe,CAAC;IAEzD,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAI,IAAY,EAAE,MAAiB,EAAK,EAAE;IAC1D,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAExC,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,OAAO,CAAC,6BAA6B,IAAI,EAAE,CAAC,CAAC;IAElE,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,CAAM,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAI,QAAgB,EAAE,IAAO,EAAE,OAAmB,EAAQ,EAAE;IAC5E,6CAA6C;IAC7C,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAElD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAW,CAAC;QAC1C,aAAa,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAC/B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,OAAO,CAAC,wBAAwB,QAAQ,EAAE,CAAC,CAAC;IACxD,CAAC;AACH,CAAC,CAAC"}
@@ -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.name}`, jsonEnabled: this.jsonEnabled() });
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.name);
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.name);
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, fl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B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAErE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;YAEhB,MAAM,iBAAiB,CAAC;gBACtB,EAAE,EAAE,QAAQ,CAAC,KAAK;gBAClB,MAAM,EAAE,KAAK,CAAC,eAAe,CAAC;gBAC9B,OAAO,EAAE,eAAe;gBACxB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;gBAC/B,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;aAC/B,CAAC,CAAC;YAEH,OAAO;gBACL,MAAM,EAAE,WAAW;gBACnB,KAAK,EAAE,QAAQ,CAAC,KAAK;aACtB,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;YAChB,IAAI,CAAC,GAAG,CACN,OAAO,QAAQ,CAAC,KAAK,EAAE,iCAAiC,QAAQ,CAAC,KAAK,EAAE,CAAC,kCAAkC,CAC5G,CAAC;QACJ,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;IAES,KAAK,CAAC,KAAiC;QAC/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
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-agent",
3
- "version": "1.18.2",
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.2",
9
+ "version": "1.18.4",
10
10
  "license": "BSD-3-Clause",
11
11
  "dependencies": {
12
12
  "@inquirer/core": "^10.1.6",
@@ -387,16 +387,6 @@
387
387
  "multiple": false,
388
388
  "type": "option"
389
389
  },
390
- "target-org": {
391
- "char": "o",
392
- "name": "target-org",
393
- "noCacheDefault": true,
394
- "required": true,
395
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
396
- "hasDynamicHelp": true,
397
- "multiple": false,
398
- "type": "option"
399
- },
400
390
  "api-version": {
401
391
  "description": "Override the api version used for api requests made by this command",
402
392
  "name": "api-version",
@@ -422,7 +412,7 @@
422
412
  "type": "option"
423
413
  }
424
414
  },
425
- "hasDynamicHelp": true,
415
+ "hasDynamicHelp": false,
426
416
  "hiddenAliases": [],
427
417
  "id": "agent:generate:template",
428
418
  "pluginAlias": "@salesforce/plugin-agent",
@@ -997,11 +987,11 @@
997
987
  "agent:test:run": {
998
988
  "aliases": [],
999
989
  "args": {},
1000
- "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.",
1001
991
  "examples": [
1002
- "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",
1003
- "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",
1004
- "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"
1005
995
  ],
1006
996
  "flags": {
1007
997
  "json": {
@@ -1036,11 +1026,11 @@
1036
1026
  "multiple": false,
1037
1027
  "type": "option"
1038
1028
  },
1039
- "name": {
1029
+ "api-name": {
1040
1030
  "char": "n",
1041
- "name": "name",
1031
+ "name": "api-name",
1042
1032
  "required": true,
1043
- "summary": "Name of the agent test to start.",
1033
+ "summary": "API Name of the agent test to start.",
1044
1034
  "hasDynamicHelp": false,
1045
1035
  "multiple": false,
1046
1036
  "type": "option"
@@ -1106,5 +1096,5 @@
1106
1096
  ]
1107
1097
  }
1108
1098
  },
1109
- "version": "1.18.2"
1099
+ "version": "1.18.4"
1110
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.2",
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.2.crt",
233
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.2.sig"
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
  }