@salesforce/plugin-agent 1.6.1 → 1.7.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 CHANGED
@@ -111,7 +111,7 @@ EXAMPLES
111
111
  $ sf agent create --name CustomerSupportAgent --spec ./config/agentSpec.json --target-org my-org
112
112
  ```
113
113
 
114
- _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/create.ts)_
114
+ _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.1/src/commands/agent/create.ts)_
115
115
 
116
116
  ## `sf agent generate definition`
117
117
 
@@ -136,7 +136,7 @@ EXAMPLES
136
136
  $ sf agent generate definition
137
137
  ```
138
138
 
139
- _See code: [src/commands/agent/generate/definition.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/generate/definition.ts)_
139
+ _See code: [src/commands/agent/generate/definition.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.1/src/commands/agent/generate/definition.ts)_
140
140
 
141
141
  ## `sf agent generate spec`
142
142
 
@@ -197,7 +197,7 @@ EXAMPLES
197
197
  $ sf agent generate spec --output-dir specs --target-org my-org
198
198
  ```
199
199
 
200
- _See code: [src/commands/agent/generate/spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/generate/spec.ts)_
200
+ _See code: [src/commands/agent/generate/spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.1/src/commands/agent/generate/spec.ts)_
201
201
 
202
202
  ## `sf agent generate testset`
203
203
 
@@ -220,7 +220,7 @@ EXAMPLES
220
220
  $ sf agent generate testset
221
221
  ```
222
222
 
223
- _See code: [src/commands/agent/generate/testset.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/generate/testset.ts)_
223
+ _See code: [src/commands/agent/generate/testset.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.1/src/commands/agent/generate/testset.ts)_
224
224
 
225
225
  ## `sf agent preview`
226
226
 
@@ -255,21 +255,21 @@ FLAG DESCRIPTIONS
255
255
  the API name of the agent? (TBD based on agents library)
256
256
  ```
257
257
 
258
- _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/preview.ts)_
258
+ _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.1/src/commands/agent/preview.ts)_
259
259
 
260
260
  ## `sf agent test cancel`
261
261
 
262
- Cancel a running test for an Agent.
262
+ Cancel an agent test that's currently running in your org.
263
263
 
264
264
  ```
265
265
  USAGE
266
266
  $ sf agent test cancel -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-i <value>] [-r]
267
267
 
268
268
  FLAGS
269
- -i, --job-id=<value> The AiEvaluation ID.
269
+ -i, --job-id=<value> Job ID of the running agent test that you want to cancel.
270
270
  -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
271
271
  configuration variable is already set.
272
- -r, --use-most-recent Use the job ID of the most recent test evaluation.
272
+ -r, --use-most-recent Use the job ID of the most recently-run agent test.
273
273
  --api-version=<value> Override the api version used for api requests made by this command
274
274
 
275
275
  GLOBAL FLAGS
@@ -277,154 +277,203 @@ GLOBAL FLAGS
277
277
  --json Format output as json.
278
278
 
279
279
  DESCRIPTION
280
- Cancel a running test for an Agent.
280
+ Cancel an agent test that's currently running in your org.
281
281
 
282
- Cancel a running test for an Agent, providing the AiEvaluation ID.
282
+ This command requires a job ID, which the original "agent test run" command displays when it completes. You can also
283
+ use the --use-most-recent flag to see results for the most recently run agent test.
283
284
 
284
285
  EXAMPLES
285
- Cancel a test for an Agent:
286
+ Cancel an agent test currently running in your default org using a job ID:
286
287
 
287
- $ sf agent test cancel --job-id AiEvalId
288
+ $ sf agent test cancel --job-id 4KBfake0000003F4AQ
289
+
290
+ Cancel the most recently run agent test in the org with alias "my-org":
291
+
292
+ $ sf agent test cancel --job-id 4KBfake0000003F4AQ --target-org my-org
288
293
  ```
289
294
 
290
- _See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/test/cancel.ts)_
295
+ _See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.1/src/commands/agent/test/cancel.ts)_
291
296
 
292
297
  ## `sf agent test results`
293
298
 
294
- Get the results of a test evaluation.
299
+ Get the results of a completed agent test run.
295
300
 
296
301
  ```
297
302
  USAGE
298
303
  $ sf agent test results -o <value> -i <value> [--json] [--flags-dir <value>] [--api-version <value>] [--result-format
299
- json|human|junit] [-f <value>]
304
+ json|human|junit|tap] [-f <value>]
300
305
 
301
306
  FLAGS
302
- -f, --output-dir=<value> Directory to write the test results to.
303
- -i, --job-id=<value> (required) The AiEvaluation ID.
307
+ -f, --output-dir=<value> Directory to write the agent test results into.
308
+ -i, --job-id=<value> (required) Job ID of the completed agent test run.
304
309
  -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
305
310
  configuration variable is already set.
306
311
  --api-version=<value> Override the api version used for api requests made by this command
307
- --result-format=<option> [default: human] Format of the test run results.
308
- <options: json|human|junit>
312
+ --result-format=<option> [default: human] Format of the agent test run results.
313
+ <options: json|human|junit|tap>
309
314
 
310
315
  GLOBAL FLAGS
311
316
  --flags-dir=<value> Import flag values from a directory.
312
317
  --json Format output as json.
313
318
 
314
319
  DESCRIPTION
315
- Get the results of a test evaluation.
320
+ Get the results of a completed agent test run.
321
+
322
+ This command requires a job ID, which the original "agent test run" command displays when it completes. You can also
323
+ use the --use-most-recent flag to see results for the most recently run agent test.
316
324
 
317
- Provide the AiEvaluation ID to get the results of a test evaluation.
325
+ By default, this command outputs test results in human-readable tables for each test case. The tables show whether the
326
+ test case passed, the expected and actual values, the test score, how long the test took, and more. Use the
327
+ --result-format to display the test results in JSON or Junit format. Use the --output-dir flag to write the results to
328
+ a file rather than to the terminal.
318
329
 
319
330
  EXAMPLES
320
- $ sf agent test results --job-id AiEvalId
331
+ Get the results of an agent test run in your default org using its job ID:
332
+
333
+ $ sf agent test results --job-id 4KBfake0000003F4AQ
334
+
335
+ Get the results of the most recently run agent test in an org with alias "my-org":
336
+
337
+ $ sf agent test results --use-most-recent --target-org my-org
338
+
339
+ Get the results of the most recently run agent test in your default org, and write the JSON-formatted results into a
340
+ directory called "test-results":
341
+
342
+ $ sf agent test results --use-most-recent --output-dir ./test-results --result-format json
321
343
 
322
344
  FLAG DESCRIPTIONS
323
- -f, --output-dir=<value> Directory to write the test results to.
345
+ -f, --output-dir=<value> Directory to write the agent test results into.
324
346
 
325
- If test run is complete, write the results to the specified directory. If the tests are still running, the test
326
- results will not be written.
347
+ If the agent test run completes, write the results to the specified directory. If the test is still running, the
348
+ test results aren't written.
327
349
  ```
328
350
 
329
- _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/test/results.ts)_
351
+ _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.1/src/commands/agent/test/results.ts)_
330
352
 
331
353
  ## `sf agent test resume`
332
354
 
333
- Resume a running test for an Agent.
355
+ Resume an agent test that you previously started in your org so you can view the test results.
334
356
 
335
357
  ```
336
358
  USAGE
337
359
  $ sf agent test resume -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-i <value>] [-r] [-w
338
- <value>] [--result-format json|human|junit] [-f <value>]
360
+ <value>] [--result-format json|human|junit|tap] [-f <value>]
339
361
 
340
362
  FLAGS
341
- -f, --output-dir=<value> Directory to write the test results to.
342
- -i, --job-id=<value> The AiEvaluation ID.
363
+ -f, --output-dir=<value> Directory to write the agent test results into.
364
+ -i, --job-id=<value> Job ID of the original agent test run.
343
365
  -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
344
366
  configuration variable is already set.
345
- -r, --use-most-recent Use the job ID of the most recent test evaluation.
367
+ -r, --use-most-recent Use the job ID of the most recent agent test run.
346
368
  -w, --wait=<value> [default: 5 minutes] Number of minutes to wait for the command to complete and display
347
369
  results to the terminal window.
348
370
  --api-version=<value> Override the api version used for api requests made by this command
349
- --result-format=<option> [default: human] Format of the test run results.
350
- <options: json|human|junit>
371
+ --result-format=<option> [default: human] Format of the agent test run results.
372
+ <options: json|human|junit|tap>
351
373
 
352
374
  GLOBAL FLAGS
353
375
  --flags-dir=<value> Import flag values from a directory.
354
376
  --json Format output as json.
355
377
 
356
378
  DESCRIPTION
357
- Resume a running test for an Agent.
379
+ Resume an agent test that you previously started in your org so you can view the test results.
380
+
381
+ This command requires a job ID, which the original "agent test run" command displays when it completes. You can also
382
+ use the --use-most-recent flag to see results for the most recently run agent test.
358
383
 
359
- Resume a running test for an Agent, providing the AiEvaluation ID.
384
+ Use the --wait flag to specify the number of minutes for this command to wait for the agent test to complete; if the
385
+ test completes by the end of the wait time, the command displays the test results. If not, the CLI returns control of
386
+ the terminal to you, and you must run "agent test resume" again.
387
+
388
+ By default, this command outputs test results in human-readable tables for each test case. The tables show whether the
389
+ test case passed, the expected and actual values, the test score, how long the test took, and more. Use the
390
+ --result-format to display the test results in JSON or Junit format. Use the --output-dir flag to write the results to
391
+ a file rather than to the terminal.
360
392
 
361
393
  EXAMPLES
362
- Resume a test for an Agent:
394
+ Resume an agent test in your default org using a job ID:
363
395
 
364
- $ sf agent test resume --job-id AiEvalId
396
+ $ sf agent test resume --job-id 4KBfake0000003F4AQ
365
397
 
366
- FLAG DESCRIPTIONS
367
- -f, --output-dir=<value> Directory to write the test results to.
398
+ Resume the most recently-run agent test in an org with alias "my-org" org; wait 10 minutes for the tests to finish:
399
+
400
+ $ sf agent test resume --use-most-recent --wait 10 --target-org my-org
368
401
 
369
- If test run is complete, write the results to the specified directory. If the tests are still running, the test
370
- results will not be written.
402
+ Resume the most recent agent test in your default org, and write the JSON-formatted results into a directory called
403
+ "test-results":
371
404
 
372
- -w, --wait=<value> Number of minutes to wait for the command to complete and display results to the terminal window.
405
+ $ sf agent test resume --use-most-recent --output-dir ./test-results --result-format json
406
+
407
+ FLAG DESCRIPTIONS
408
+ -f, --output-dir=<value> Directory to write the agent test results into.
373
409
 
374
- If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
410
+ If the agent test run completes, write the results to the specified directory. If the test is still running, the
411
+ test results aren't written.
375
412
  ```
376
413
 
377
- _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/test/resume.ts)_
414
+ _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.1/src/commands/agent/test/resume.ts)_
378
415
 
379
416
  ## `sf agent test run`
380
417
 
381
- Start a test for an Agent.
418
+ Start an agent test in your org.
382
419
 
383
420
  ```
384
421
  USAGE
385
422
  $ sf agent test run -o <value> -n <value> [--json] [--flags-dir <value>] [--api-version <value>] [-w <value>]
386
- [--result-format json|human|junit] [-f <value>]
423
+ [--result-format json|human|junit|tap] [-f <value>]
387
424
 
388
425
  FLAGS
389
- -f, --output-dir=<value> Directory to write the test results to.
390
- -n, --name=<value> (required) The name of the AiEvaluationDefinition to start.
426
+ -f, --output-dir=<value> Directory to write the agent test results into.
427
+ -n, --name=<value> (required) Name of the agent test to start.
391
428
  -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
392
429
  configuration variable is already set.
393
430
  -w, --wait=<value> Number of minutes to wait for the command to complete and display results to the
394
431
  terminal window.
395
432
  --api-version=<value> Override the api version used for api requests made by this command
396
- --result-format=<option> [default: human] Format of the test run results.
397
- <options: json|human|junit>
433
+ --result-format=<option> [default: human] Format of the agent test run results.
434
+ <options: json|human|junit|tap>
398
435
 
399
436
  GLOBAL FLAGS
400
437
  --flags-dir=<value> Import flag values from a directory.
401
438
  --json Format output as json.
402
439
 
403
440
  DESCRIPTION
404
- Start a test for an Agent.
441
+ Start an agent test in your org.
405
442
 
406
- Start a test for an Agent, providing the AiEvalDefinitionVersion ID. Returns the job ID.
443
+ Use the --name flag to specify the name of the agent test you want to run; find the agent test's name in the Testing
444
+ Center page in the Setup UI of your org.
445
+
446
+ This command starts the agent test in your org, but doesn't by default wait for it to finish. Instead, it displays the
447
+ "agent test resume" command, with a job ID, that you execute to see the results of the test run, and then returns
448
+ control of the terminal window to you. Use the --wait flag to specify the number of minutes for the command to wait
449
+ for the agent test to complete; if the test completes by the end of the wait time, the command displays the test
450
+ results. If not, run "agent test resume".
451
+
452
+ By default, this command outputs test results in human-readable tables for each test case, if the test completes in
453
+ time. The tables show whether the test case passed, the expected and actual values, the test score, how long the test
454
+ took, and more. Use the --result-format to display the test results in JSON or Junit format. Use the --output-dir flag
455
+ to write the results to a file rather than to the terminal.
407
456
 
408
457
  EXAMPLES
409
- Start a test for an Agent:
458
+ Start a test called MyAgentTest for an agent in your default org, don't wait for the test to finish:
410
459
 
411
- $ sf agent test run --name AiEvalDefVerId
460
+ $ sf agent test run --name MyAgentTest
412
461
 
413
- FLAG DESCRIPTIONS
414
- -f, --output-dir=<value> Directory to write the test results to.
462
+ Start a test for an agent in an org with alias "my-org" and wait for 10 minutes for the test to finish:
415
463
 
416
- If test run is complete, write the results to the specified directory. If the tests are still running, the test
417
- results will not be written.
464
+ $ sf agent test run --name MyAgentTest --wait 10 --target-org my-org
418
465
 
419
- -n, --name=<value> The name of the AiEvaluationDefinition to start.
466
+ Start a test and write the JSON-formatted results into a directory called "test-results":
420
467
 
421
- The name of the AiEvaluationDefinition to start.
468
+ $ sf agent test run --name MyAgentTest --wait 10 --output-dir ./test-results --result-format json
422
469
 
423
- -w, --wait=<value> Number of minutes to wait for the command to complete and display results to the terminal window.
470
+ FLAG DESCRIPTIONS
471
+ -f, --output-dir=<value> Directory to write the agent test results into.
424
472
 
425
- If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
473
+ If the agent test run completes, write the results to the specified directory. If the test is still running, the
474
+ test results aren't written.
426
475
  ```
427
476
 
428
- _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/test/run.ts)_
477
+ _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.1/src/commands/agent/test/run.ts)_
429
478
 
430
479
  <!-- commandsstop -->
@@ -10,7 +10,7 @@ export default class AgentTestResults extends SfCommand<AgentTestResultsResult>
10
10
  'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
11
11
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
12
  'job-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
13
- 'result-format': import("@oclif/core/interfaces").OptionFlag<"json" | "human" | "junit", import("@oclif/core/interfaces").CustomOptions>;
13
+ 'result-format': import("@oclif/core/interfaces").OptionFlag<"json" | "human" | "junit" | "tap", import("@oclif/core/interfaces").CustomOptions>;
14
14
  'output-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
15
  };
16
16
  run(): Promise<AgentTestResultsResult>;
@@ -14,7 +14,7 @@ export default class AgentTestResume extends SfCommand<AgentTestResumeResult> {
14
14
  'job-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
15
  'use-most-recent': import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  wait: import("@oclif/core/interfaces").OptionFlag<import("@salesforce/kit").Duration, import("@oclif/core/interfaces").CustomOptions>;
17
- 'result-format': import("@oclif/core/interfaces").OptionFlag<"json" | "human" | "junit", import("@oclif/core/interfaces").CustomOptions>;
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
19
  };
20
20
  run(): Promise<AgentTestResumeResult>;
@@ -37,7 +37,6 @@ export default class AgentTestResume extends SfCommand {
37
37
  min: 1,
38
38
  defaultValue: 5,
39
39
  summary: messages.getMessage('flags.wait.summary'),
40
- description: messages.getMessage('flags.wait.description'),
41
40
  }),
42
41
  'result-format': resultFormatFlag(),
43
42
  'output-dir': testOutputDirFlag(),
@@ -1 +1 @@
1
- {"version":3,"file":"resume.js","sourceRoot":"","sources":["../../../../src/commands/agent/test/resume.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACxE,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,mBAAmB,CAAC,CAAC;AAOxF,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,SAAgC;IACpE,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,CAAU,KAAK,GAAG,MAAM,CAAC;IAE/B,MAAM,CAAU,KAAK,GAAG;QAC7B,YAAY,EAAE,KAAK,CAAC,WAAW,EAAE;QACjC,aAAa,EAAE,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fCommand<AgentTestRunResult> {
13
13
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
14
  name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
15
15
  wait: import("@oclif/core/interfaces").OptionFlag<import("@salesforce/kit").Duration, import("@oclif/core/interfaces").CustomOptions>;
16
- 'result-format': import("@oclif/core/interfaces").OptionFlag<"json" | "human" | "junit", import("@oclif/core/interfaces").CustomOptions>;
16
+ 'result-format': import("@oclif/core/interfaces").OptionFlag<"json" | "human" | "junit" | "tap", import("@oclif/core/interfaces").CustomOptions>;
17
17
  'output-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
18
  };
19
19
  run(): Promise<AgentTestRunResult>;
@@ -26,7 +26,6 @@ export default class AgentTestRun extends SfCommand {
26
26
  char: 'n',
27
27
  required: true,
28
28
  summary: messages.getMessage('flags.name.summary'),
29
- description: messages.getMessage('flags.name.description'),
30
29
  }),
31
30
  // we want to pass `undefined` to the API
32
31
  // eslint-disable-next-line sf-plugin/flag-min-max-default
@@ -35,7 +34,6 @@ export default class AgentTestRun extends SfCommand {
35
34
  unit: 'minutes',
36
35
  min: 1,
37
36
  summary: messages.getMessage('flags.wait.summary'),
38
- description: messages.getMessage('flags.wait.description'),
39
37
  }),
40
38
  'result-format': resultFormatFlag(),
41
39
  'output-dir': testOutputDirFlag(),
@@ -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,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AA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CAAC,cAAc,EAAE,CAC3D,kCAAkC,CACpC,CAAC;QACJ,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC"}
package/lib/flags.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const resultFormatFlag: import("@oclif/core/interfaces").FlagDefinition<"json" | "human" | "junit", import("@oclif/core/interfaces").CustomOptions, {
1
+ export declare const resultFormatFlag: import("@oclif/core/interfaces").FlagDefinition<"json" | "human" | "junit" | "tap", import("@oclif/core/interfaces").CustomOptions, {
2
2
  multiple: false;
3
3
  requiredOrDefaulted: true;
4
4
  }>;
package/lib/flags.js CHANGED
@@ -9,12 +9,7 @@ import { Messages } from '@salesforce/core';
9
9
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
10
10
  const messages = Messages.loadMessages('@salesforce/plugin-agent', 'shared');
11
11
  export const resultFormatFlag = Flags.option({
12
- options: [
13
- 'json',
14
- 'human',
15
- 'junit',
16
- // 'tap',
17
- ],
12
+ options: ['json', 'human', 'junit', 'tap'],
18
13
  default: 'human',
19
14
  summary: messages.getMessage('flags.result-format.summary'),
20
15
  });
package/lib/flags.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"flags.js","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,QAAQ,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE;QACP,MAAM;QACN,OAAO;QACP,OAAO;QACP,SAAS;KACD;IACV,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAC5D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAS;IACpD,IAAI,EAAE,GAAG;IACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAChE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;CACzD,CAAC,CAAC"}
1
+ {"version":3,"file":"flags.js","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,QAAQ,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAU;IACnD,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAC5D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAS;IACpD,IAAI,EAAE,GAAG;IACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAChE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;CACzD,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { AgentTestDetailsResponse } from '@salesforce/agents';
2
2
  export declare function handleTestResults({ id, format, results, jsonEnabled, outputDir, }: {
3
3
  id: string;
4
- format: 'human' | 'json' | 'junit';
4
+ format: 'human' | 'json' | 'junit' | 'tap';
5
5
  results: AgentTestDetailsResponse | undefined;
6
6
  jsonEnabled: boolean;
7
7
  outputDir?: string;
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { join } from 'node:path';
8
8
  import { writeFile, mkdir } from 'node:fs/promises';
9
- import { jsonFormat, humanFormat, junitFormat } from '@salesforce/agents';
9
+ import { jsonFormat, humanFormat, junitFormat, tapFormat } from '@salesforce/agents';
10
10
  import { Ux } from '@salesforce/sf-plugins-core/Ux';
11
11
  async function writeFileToDir(outputDir, fileName, content) {
12
12
  // if directory doesn't exist, create it
@@ -40,5 +40,12 @@ export async function handleTestResults({ id, format, results, jsonEnabled, outp
40
40
  await writeFileToDir(outputDir, `test-result-${id}.xml`, formatted);
41
41
  }
42
42
  }
43
+ if (format === 'tap') {
44
+ const formatted = await tapFormat(results);
45
+ ux.log(formatted);
46
+ if (outputDir) {
47
+ await writeFileToDir(outputDir, `test-result-${id}.txt`, formatted);
48
+ }
49
+ }
43
50
  }
44
51
  //# sourceMappingURL=handleTestResults.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleTestResults.js","sourceRoot":"","sources":["../src/handleTestResults.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAA4B,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAEpD,KAAK,UAAU,cAAc,CAAC,SAAiB,EAAE,QAAgB,EAAE,OAAe;IAChF,wCAAwC;IACxC,MAAM,KAAK,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAE5C,MAAM,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,OAA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AAE,eAAe,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;IAED,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACvB,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC,OAAO,CAAC,CAAC;QAC7C,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAClB,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,cAAc,CAAC,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;QACtE,CAAC;IACH,CAAC;IAED,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;QACrB,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,CAAC;QAC3C,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAClB,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,cAAc,CAAC,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;QACtE,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,21 +1,25 @@
1
1
  # summary
2
2
 
3
- Cancel a running test for an Agent.
3
+ Cancel an agent test that's currently running in your org.
4
4
 
5
5
  # description
6
6
 
7
- Cancel a running test for an Agent, providing the AiEvaluation ID.
7
+ This command requires a job ID, which the original "agent test run" command displays when it completes. You can also use the --use-most-recent flag to see results for the most recently run agent test.
8
8
 
9
9
  # flags.job-id.summary
10
10
 
11
- The AiEvaluation ID.
11
+ Job ID of the running agent test that you want to cancel.
12
12
 
13
13
  # flags.use-most-recent.summary
14
14
 
15
- Use the job ID of the most recent test evaluation.
15
+ Use the job ID of the most recently-run agent test.
16
16
 
17
17
  # examples
18
18
 
19
- - Cancel a test for an Agent:
19
+ - Cancel an agent test currently running in your default org using a job ID:
20
20
 
21
- <%= config.bin %> <%= command.id %> --job-id AiEvalId
21
+ <%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ
22
+
23
+ - Cancel the most recently run agent test in the org with alias "my-org":
24
+
25
+ <%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ --target-org my-org
@@ -1,19 +1,31 @@
1
1
  # summary
2
2
 
3
- Get the results of a test evaluation.
3
+ Get the results of a completed agent test run.
4
4
 
5
5
  # description
6
6
 
7
- Provide the AiEvaluation ID to get the results of a test evaluation.
7
+ This command requires a job ID, which the original "agent test run" command displays when it completes. You can also use the --use-most-recent flag to see results for the most recently run agent test.
8
+
9
+ By default, this command outputs test results in human-readable tables for each test case. 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.
8
10
 
9
11
  # flags.job-id.summary
10
12
 
11
- The AiEvaluation ID.
13
+ Job ID of the completed agent test run.
12
14
 
13
15
  # flags.use-most-recent.summary
14
16
 
15
- Use the job ID of the most recent test evaluation.
17
+ Use the job ID of the most recent agent test run.
16
18
 
17
19
  # examples
18
20
 
19
- - <%= config.bin %> <%= command.id %> --job-id AiEvalId
21
+ - Get the results of an agent test run in your default org using its job ID:
22
+
23
+ <%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ
24
+
25
+ - Get the results of the most recently run agent test in an org with alias "my-org":
26
+
27
+ <%= config.bin %> <%= command.id %> --use-most-recent --target-org my-org
28
+
29
+ - Get the results of the most recently run agent test in your default org, and write the JSON-formatted results into a directory called "test-results":
30
+
31
+ <%= config.bin %> <%= command.id %> --use-most-recent --output-dir ./test-results --result-format json
@@ -1,29 +1,37 @@
1
1
  # summary
2
2
 
3
- Resume a running test for an Agent.
3
+ Resume an agent test that you previously started in your org so you can view the test results.
4
4
 
5
5
  # description
6
6
 
7
- Resume a running test for an Agent, providing the AiEvaluation ID.
7
+ This command requires a job ID, which the original "agent test run" command displays when it completes. You can also use the --use-most-recent flag to see results for the most recently run agent test.
8
+
9
+ Use the --wait flag to specify the number of minutes for this 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, the CLI returns control of the terminal to you, and you must run "agent test resume" again.
10
+
11
+ By default, this command outputs test results in human-readable tables for each test case. 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.
8
12
 
9
13
  # flags.job-id.summary
10
14
 
11
- The AiEvaluation ID.
15
+ Job ID of the original agent test run.
12
16
 
13
17
  # flags.use-most-recent.summary
14
18
 
15
- Use the job ID of the most recent test evaluation.
19
+ Use the job ID of the most recent agent test run.
16
20
 
17
21
  # flags.wait.summary
18
22
 
19
23
  Number of minutes to wait for the command to complete and display results to the terminal window.
20
24
 
21
- # flags.wait.description
25
+ # examples
26
+
27
+ - Resume an agent test in your default org using a job ID:
22
28
 
23
- If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
29
+ <%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ
24
30
 
25
- # examples
31
+ - Resume the most recently-run agent test in an org with alias "my-org" org; wait 10 minutes for the tests to finish:
32
+
33
+ <%= config.bin %> <%= command.id %> --use-most-recent --wait 10 --target-org my-org
26
34
 
27
- - Resume a test for an Agent:
35
+ - Resume the most recent agent test in your default org, and write the JSON-formatted results into a directory called "test-results":
28
36
 
29
- <%= config.bin %> <%= command.id %> --job-id AiEvalId
37
+ <%= config.bin %> <%= command.id %> --use-most-recent --output-dir ./test-results --result-format json
@@ -1,29 +1,33 @@
1
1
  # summary
2
2
 
3
- Start a test for an Agent.
3
+ Start an agent test in your org.
4
4
 
5
5
  # description
6
6
 
7
- Start a test for an Agent, providing the AiEvalDefinitionVersion ID. Returns the job ID.
7
+ Use the --name flag to specify the name of the agent test you want to run; find the agent test's name in the Testing Center page in the Setup UI of your org.
8
8
 
9
- # flags.name.summary
9
+ This command starts the agent test in your org, but doesn't by default wait for it 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
- The name of the AiEvaluationDefinition to start.
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.description
13
+ # flags.name.summary
14
14
 
15
- The name of the AiEvaluationDefinition to start.
15
+ Name of the agent test to start.
16
16
 
17
17
  # flags.wait.summary
18
18
 
19
19
  Number of minutes to wait for the command to complete and display results to the terminal window.
20
20
 
21
- # flags.wait.description
21
+ # examples
22
+
23
+ - Start a test called MyAgentTest for an agent in your default org, don't wait for the test to finish:
22
24
 
23
- If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
25
+ <%= config.bin %> <%= command.id %> --name MyAgentTest
24
26
 
25
- # examples
27
+ - Start a test for an agent in an org with alias "my-org" and wait for 10 minutes for the test to finish:
28
+
29
+ <%= config.bin %> <%= command.id %> --name MyAgentTest --wait 10 --target-org my-org
26
30
 
27
- - Start a test for an Agent:
31
+ - Start a test and write the JSON-formatted results into a directory called "test-results":
28
32
 
29
- <%= config.bin %> <%= command.id %> --name AiEvalDefVerId
33
+ <%= config.bin %> <%= command.id %> --name MyAgentTest --wait 10 --output-dir ./test-results --result-format json
@@ -1,11 +1,11 @@
1
1
  # flags.result-format.summary
2
2
 
3
- Format of the test run results.
3
+ Format of the agent test run results.
4
4
 
5
5
  # flags.output-dir.summary
6
6
 
7
- Directory to write the test results to.
7
+ Directory to write the agent test results into.
8
8
 
9
9
  # flags.output-dir.description
10
10
 
11
- If test run is complete, write the results to the specified directory. If the tests are still running, the test results will not be written.
11
+ If the agent test run completes, write the results to the specified directory. If the test is still running, the test results aren't written.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-agent",
3
- "version": "1.6.1",
3
+ "version": "1.7.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/plugin-agent",
9
- "version": "1.6.1",
9
+ "version": "1.7.1",
10
10
  "license": "BSD-3-Clause",
11
11
  "dependencies": {
12
12
  "@inquirer/confirm": "^5.1.0",
@@ -15,7 +15,7 @@
15
15
  "@inquirer/select": "^4.0.1",
16
16
  "@oclif/core": "^4",
17
17
  "@oclif/multi-stage-output": "^0.7.12",
18
- "@salesforce/agents": "^0.4.2",
18
+ "@salesforce/agents": "^0.5.1",
19
19
  "@salesforce/core": "^8.8.0",
20
20
  "@salesforce/kit": "^3.2.1",
21
21
  "@salesforce/sf-plugins-core": "^12.1.0",
@@ -3153,16 +3153,16 @@
3153
3153
  }
3154
3154
  },
3155
3155
  "node_modules/@salesforce/agents": {
3156
- "version": "0.4.2",
3157
- "resolved": "https://registry.npmjs.org/@salesforce/agents/-/agents-0.4.2.tgz",
3158
- "integrity": "sha512-oTHEf3Dp6T8sYZzB/6V0HaZg7k/aZfTIFsoqYeewWpEa/KP0oopGHWTO9my15n1Guoq0qif6sWqX+RwWpqGgWw==",
3156
+ "version": "0.5.1",
3157
+ "resolved": "https://registry.npmjs.org/@salesforce/agents/-/agents-0.5.1.tgz",
3158
+ "integrity": "sha512-FGpCQ3PVzZunoaQVPAJG05eqafOvf2P7fx2w5aZYVg9yqwM/UnBpTBKVvkmdZDsBRTUYaExr6tvboaMc5Hsfzw==",
3159
3159
  "license": "BSD-3-Clause",
3160
3160
  "dependencies": {
3161
3161
  "@oclif/table": "^0.3.5",
3162
3162
  "@salesforce/core": "^8.8.0",
3163
3163
  "@salesforce/kit": "^3.2.3",
3164
3164
  "@salesforce/sf-plugins-core": "^12.1.0",
3165
- "@salesforce/source-deploy-retrieve": "^12.10.2",
3165
+ "@salesforce/source-deploy-retrieve": "^12.10.3",
3166
3166
  "fast-xml-parser": "^4",
3167
3167
  "nock": "^13.5.6"
3168
3168
  },
@@ -3770,9 +3770,9 @@
3770
3770
  }
3771
3771
  },
3772
3772
  "node_modules/@salesforce/source-deploy-retrieve": {
3773
- "version": "12.10.2",
3774
- "resolved": "https://registry.npmjs.org/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.10.2.tgz",
3775
- "integrity": "sha512-V7V+nCxhJBcSEh5gJIZt44bsnYJ53HXt3Dec4gphu/Z8mu6Rr3b3yDC3Zw2EKyiDwYYxWvp0pjhqcO2xOTnNLw==",
3773
+ "version": "12.10.3",
3774
+ "resolved": "https://registry.npmjs.org/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.10.3.tgz",
3775
+ "integrity": "sha512-bKIcN6VJajre2chF1xhPCjtR9gZpp8PrFFZ55UcWUMkoFAXscBPRJ7poAeorted3qMzS6wx+AuB27qYUCO+4iQ==",
3776
3776
  "license": "BSD-3-Clause",
3777
3777
  "dependencies": {
3778
3778
  "@salesforce/core": "^8.8.0",
package/oclif.lock CHANGED
@@ -1422,16 +1422,16 @@
1422
1422
  resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
1423
1423
  integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
1424
1424
 
1425
- "@salesforce/agents@^0.4.2":
1426
- version "0.4.2"
1427
- resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.4.2.tgz#1caaf6a521cc3385a0411840876b77147aea880a"
1428
- integrity sha512-oTHEf3Dp6T8sYZzB/6V0HaZg7k/aZfTIFsoqYeewWpEa/KP0oopGHWTO9my15n1Guoq0qif6sWqX+RwWpqGgWw==
1425
+ "@salesforce/agents@^0.5.1":
1426
+ version "0.5.1"
1427
+ resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.5.1.tgz#b6de16004505432c226c02f612c6b0b7b6227f6f"
1428
+ integrity sha512-FGpCQ3PVzZunoaQVPAJG05eqafOvf2P7fx2w5aZYVg9yqwM/UnBpTBKVvkmdZDsBRTUYaExr6tvboaMc5Hsfzw==
1429
1429
  dependencies:
1430
1430
  "@oclif/table" "^0.3.5"
1431
1431
  "@salesforce/core" "^8.8.0"
1432
1432
  "@salesforce/kit" "^3.2.3"
1433
1433
  "@salesforce/sf-plugins-core" "^12.1.0"
1434
- "@salesforce/source-deploy-retrieve" "^12.10.2"
1434
+ "@salesforce/source-deploy-retrieve" "^12.10.3"
1435
1435
  fast-xml-parser "^4"
1436
1436
  nock "^13.5.6"
1437
1437
 
@@ -1577,10 +1577,10 @@
1577
1577
  cli-progress "^3.12.0"
1578
1578
  terminal-link "^3.0.0"
1579
1579
 
1580
- "@salesforce/source-deploy-retrieve@^12.10.2":
1581
- version "12.10.2"
1582
- resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.10.2.tgz#c3737f3751f84cb4754b666edd83c014c91b87bb"
1583
- integrity sha512-V7V+nCxhJBcSEh5gJIZt44bsnYJ53HXt3Dec4gphu/Z8mu6Rr3b3yDC3Zw2EKyiDwYYxWvp0pjhqcO2xOTnNLw==
1580
+ "@salesforce/source-deploy-retrieve@^12.10.3":
1581
+ version "12.10.3"
1582
+ resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.10.3.tgz#fa16910781188877ffdfa5fde3a0318c0dfe3d07"
1583
+ integrity sha512-bKIcN6VJajre2chF1xhPCjtR9gZpp8PrFFZ55UcWUMkoFAXscBPRJ7poAeorted3qMzS6wx+AuB27qYUCO+4iQ==
1584
1584
  dependencies:
1585
1585
  "@salesforce/core" "^8.8.0"
1586
1586
  "@salesforce/kit" "^3.2.2"
@@ -373,9 +373,10 @@
373
373
  "agent:test:cancel": {
374
374
  "aliases": [],
375
375
  "args": {},
376
- "description": "Cancel a running test for an Agent, providing the AiEvaluation ID.",
376
+ "description": "This command requires a job ID, which the original \"agent test run\" command displays when it completes. You can also use the --use-most-recent flag to see results for the most recently run agent test.",
377
377
  "examples": [
378
- "Cancel a test for an Agent:\n<%= config.bin %> <%= command.id %> --job-id AiEvalId"
378
+ "Cancel an agent test currently running in your default org using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ",
379
+ "Cancel the most recently run agent test in the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ --target-org my-org"
379
380
  ],
380
381
  "flags": {
381
382
  "json": {
@@ -413,7 +414,7 @@
413
414
  "job-id": {
414
415
  "char": "i",
415
416
  "name": "job-id",
416
- "summary": "The AiEvaluation ID.",
417
+ "summary": "Job ID of the running agent test that you want to cancel.",
417
418
  "hasDynamicHelp": false,
418
419
  "multiple": false,
419
420
  "type": "option"
@@ -421,7 +422,7 @@
421
422
  "use-most-recent": {
422
423
  "char": "r",
423
424
  "name": "use-most-recent",
424
- "summary": "Use the job ID of the most recent test evaluation.",
425
+ "summary": "Use the job ID of the most recently-run agent test.",
425
426
  "allowNo": false,
426
427
  "type": "boolean"
427
428
  }
@@ -434,7 +435,7 @@
434
435
  "pluginType": "core",
435
436
  "state": "beta",
436
437
  "strict": true,
437
- "summary": "Cancel a running test for an Agent.",
438
+ "summary": "Cancel an agent test that's currently running in your org.",
438
439
  "enableJsonFlag": true,
439
440
  "isESM": true,
440
441
  "relativePath": [
@@ -457,9 +458,11 @@
457
458
  "agent:test:results": {
458
459
  "aliases": [],
459
460
  "args": {},
460
- "description": "Provide the AiEvaluation ID to get the results of a test evaluation.",
461
+ "description": "This command requires a job ID, which the original \"agent test run\" command displays when it completes. You can also use the --use-most-recent flag to see results for the most recently run agent test.\n\nBy default, this command outputs test results in human-readable tables for each test case. 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.",
461
462
  "examples": [
462
- "<%= config.bin %> <%= command.id %> --job-id AiEvalId"
463
+ "Get the results of an agent test run in your default org using its job ID:\n<%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ",
464
+ "Get the results of the most recently run agent test in an org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-org",
465
+ "Get the results of the most recently run agent test in your default org, and write the JSON-formatted results into a directory called \"test-results\":\n<%= config.bin %> <%= command.id %> --use-most-recent --output-dir ./test-results --result-format json"
463
466
  ],
464
467
  "flags": {
465
468
  "json": {
@@ -498,29 +501,30 @@
498
501
  "char": "i",
499
502
  "name": "job-id",
500
503
  "required": true,
501
- "summary": "The AiEvaluation ID.",
504
+ "summary": "Job ID of the completed agent test run.",
502
505
  "hasDynamicHelp": false,
503
506
  "multiple": false,
504
507
  "type": "option"
505
508
  },
506
509
  "result-format": {
507
510
  "name": "result-format",
508
- "summary": "Format of the test run results.",
511
+ "summary": "Format of the agent test run results.",
509
512
  "default": "human",
510
513
  "hasDynamicHelp": false,
511
514
  "multiple": false,
512
515
  "options": [
513
516
  "json",
514
517
  "human",
515
- "junit"
518
+ "junit",
519
+ "tap"
516
520
  ],
517
521
  "type": "option"
518
522
  },
519
523
  "output-dir": {
520
524
  "char": "f",
521
- "description": "If test run is complete, write the results to the specified directory. If the tests are still running, the test results will not be written.",
525
+ "description": "If the agent test run completes, write the results to the specified directory. If the test is still running, the test results aren't written.",
522
526
  "name": "output-dir",
523
- "summary": "Directory to write the test results to.",
527
+ "summary": "Directory to write the agent test results into.",
524
528
  "hasDynamicHelp": false,
525
529
  "multiple": false,
526
530
  "type": "option"
@@ -534,7 +538,7 @@
534
538
  "pluginType": "core",
535
539
  "state": "beta",
536
540
  "strict": true,
537
- "summary": "Get the results of a test evaluation.",
541
+ "summary": "Get the results of a completed agent test run.",
538
542
  "enableJsonFlag": true,
539
543
  "isESM": true,
540
544
  "relativePath": [
@@ -557,9 +561,11 @@
557
561
  "agent:test:resume": {
558
562
  "aliases": [],
559
563
  "args": {},
560
- "description": "Resume a running test for an Agent, providing the AiEvaluation ID.",
564
+ "description": "This command requires a job ID, which the original \"agent test run\" command displays when it completes. You can also use the --use-most-recent flag to see results for the most recently run agent test.\n\nUse the --wait flag to specify the number of minutes for this 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, the CLI returns control of the terminal to you, and you must run \"agent test resume\" again.\n\nBy default, this command outputs test results in human-readable tables for each test case. 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.",
561
565
  "examples": [
562
- "Resume a test for an Agent:\n<%= config.bin %> <%= command.id %> --job-id AiEvalId"
566
+ "Resume an agent test in your default org using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ",
567
+ "Resume the most recently-run agent test in an org with alias \"my-org\" org; wait 10 minutes for the tests to finish:\n<%= config.bin %> <%= command.id %> --use-most-recent --wait 10 --target-org my-org",
568
+ "Resume the most recent agent test in your default org, and write the JSON-formatted results into a directory called \"test-results\":\n<%= config.bin %> <%= command.id %> --use-most-recent --output-dir ./test-results --result-format json"
563
569
  ],
564
570
  "flags": {
565
571
  "json": {
@@ -597,7 +603,7 @@
597
603
  "job-id": {
598
604
  "char": "i",
599
605
  "name": "job-id",
600
- "summary": "The AiEvaluation ID.",
606
+ "summary": "Job ID of the original agent test run.",
601
607
  "hasDynamicHelp": false,
602
608
  "multiple": false,
603
609
  "type": "option"
@@ -605,13 +611,12 @@
605
611
  "use-most-recent": {
606
612
  "char": "r",
607
613
  "name": "use-most-recent",
608
- "summary": "Use the job ID of the most recent test evaluation.",
614
+ "summary": "Use the job ID of the most recent agent test run.",
609
615
  "allowNo": false,
610
616
  "type": "boolean"
611
617
  },
612
618
  "wait": {
613
619
  "char": "w",
614
- "description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you.",
615
620
  "name": "wait",
616
621
  "summary": "Number of minutes to wait for the command to complete and display results to the terminal window.",
617
622
  "default": "5 minutes",
@@ -621,22 +626,23 @@
621
626
  },
622
627
  "result-format": {
623
628
  "name": "result-format",
624
- "summary": "Format of the test run results.",
629
+ "summary": "Format of the agent test run results.",
625
630
  "default": "human",
626
631
  "hasDynamicHelp": false,
627
632
  "multiple": false,
628
633
  "options": [
629
634
  "json",
630
635
  "human",
631
- "junit"
636
+ "junit",
637
+ "tap"
632
638
  ],
633
639
  "type": "option"
634
640
  },
635
641
  "output-dir": {
636
642
  "char": "f",
637
- "description": "If test run is complete, write the results to the specified directory. If the tests are still running, the test results will not be written.",
643
+ "description": "If the agent test run completes, write the results to the specified directory. If the test is still running, the test results aren't written.",
638
644
  "name": "output-dir",
639
- "summary": "Directory to write the test results to.",
645
+ "summary": "Directory to write the agent test results into.",
640
646
  "hasDynamicHelp": false,
641
647
  "multiple": false,
642
648
  "type": "option"
@@ -650,7 +656,7 @@
650
656
  "pluginType": "core",
651
657
  "state": "beta",
652
658
  "strict": true,
653
- "summary": "Resume a running test for an Agent.",
659
+ "summary": "Resume an agent test that you previously started in your org so you can view the test results.",
654
660
  "enableJsonFlag": true,
655
661
  "isESM": true,
656
662
  "relativePath": [
@@ -673,9 +679,11 @@
673
679
  "agent:test:run": {
674
680
  "aliases": [],
675
681
  "args": {},
676
- "description": "Start a test for an Agent, providing the AiEvalDefinitionVersion ID. Returns the job ID.",
682
+ "description": "Use the --name flag to specify the name of the agent test you want to run; find the agent test's name in the Testing Center page in the Setup UI of your org.\n\nThis command starts the agent test in your org, but doesn't by default wait for it 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.",
677
683
  "examples": [
678
- "Start a test for an Agent:\n<%= config.bin %> <%= command.id %> --name AiEvalDefVerId"
684
+ "Start a test called MyAgentTest for an agent in your default org, don't wait for the test to finish:\n<%= config.bin %> <%= command.id %> --name MyAgentTest",
685
+ "Start a 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 MyAgentTest --wait 10 --target-org my-org",
686
+ "Start a test and write the JSON-formatted results into a directory called \"test-results\":\n<%= config.bin %> <%= command.id %> --name MyAgentTest --wait 10 --output-dir ./test-results --result-format json"
679
687
  ],
680
688
  "flags": {
681
689
  "json": {
@@ -712,17 +720,15 @@
712
720
  },
713
721
  "name": {
714
722
  "char": "n",
715
- "description": "The name of the AiEvaluationDefinition to start.",
716
723
  "name": "name",
717
724
  "required": true,
718
- "summary": "The name of the AiEvaluationDefinition to start.",
725
+ "summary": "Name of the agent test to start.",
719
726
  "hasDynamicHelp": false,
720
727
  "multiple": false,
721
728
  "type": "option"
722
729
  },
723
730
  "wait": {
724
731
  "char": "w",
725
- "description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you.",
726
732
  "name": "wait",
727
733
  "summary": "Number of minutes to wait for the command to complete and display results to the terminal window.",
728
734
  "hasDynamicHelp": true,
@@ -731,22 +737,23 @@
731
737
  },
732
738
  "result-format": {
733
739
  "name": "result-format",
734
- "summary": "Format of the test run results.",
740
+ "summary": "Format of the agent test run results.",
735
741
  "default": "human",
736
742
  "hasDynamicHelp": false,
737
743
  "multiple": false,
738
744
  "options": [
739
745
  "json",
740
746
  "human",
741
- "junit"
747
+ "junit",
748
+ "tap"
742
749
  ],
743
750
  "type": "option"
744
751
  },
745
752
  "output-dir": {
746
753
  "char": "f",
747
- "description": "If test run is complete, write the results to the specified directory. If the tests are still running, the test results will not be written.",
754
+ "description": "If the agent test run completes, write the results to the specified directory. If the test is still running, the test results aren't written.",
748
755
  "name": "output-dir",
749
- "summary": "Directory to write the test results to.",
756
+ "summary": "Directory to write the agent test results into.",
750
757
  "hasDynamicHelp": false,
751
758
  "multiple": false,
752
759
  "type": "option"
@@ -760,7 +767,7 @@
760
767
  "pluginType": "core",
761
768
  "state": "beta",
762
769
  "strict": true,
763
- "summary": "Start a test for an Agent.",
770
+ "summary": "Start an agent test in your org.",
764
771
  "enableJsonFlag": true,
765
772
  "isESM": true,
766
773
  "relativePath": [
@@ -781,5 +788,5 @@
781
788
  ]
782
789
  }
783
790
  },
784
- "version": "1.6.1"
791
+ "version": "1.7.1"
785
792
  }
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.6.1",
4
+ "version": "1.7.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -11,7 +11,7 @@
11
11
  "@inquirer/select": "^4.0.1",
12
12
  "@oclif/core": "^4",
13
13
  "@oclif/multi-stage-output": "^0.7.12",
14
- "@salesforce/agents": "^0.4.2",
14
+ "@salesforce/agents": "^0.5.1",
15
15
  "@salesforce/core": "^8.8.0",
16
16
  "@salesforce/kit": "^3.2.1",
17
17
  "@salesforce/sf-plugins-core": "^12.1.0",
@@ -222,7 +222,7 @@
222
222
  "exports": "./lib/index.js",
223
223
  "type": "module",
224
224
  "sfdx": {
225
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.6.1.crt",
226
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.6.1.sig"
225
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.7.1.crt",
226
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.7.1.sig"
227
227
  }
228
228
  }
@@ -20,14 +20,27 @@
20
20
  "errorMessage": {
21
21
  "type": "string"
22
22
  },
23
- "testCases": {
24
- "type": "array",
25
- "items": {
26
- "$ref": "#/definitions/TestCaseResult"
27
- }
23
+ "subjectName": {
24
+ "type": "string"
25
+ },
26
+ "testSet": {
27
+ "type": "object",
28
+ "properties": {
29
+ "name": {
30
+ "type": "string"
31
+ },
32
+ "testCases": {
33
+ "type": "array",
34
+ "items": {
35
+ "$ref": "#/definitions/TestCaseResult"
36
+ }
37
+ }
38
+ },
39
+ "required": ["name", "testCases"],
40
+ "additionalProperties": false
28
41
  }
29
42
  },
30
- "required": ["status", "startTime", "testCases"],
43
+ "required": ["status", "startTime", "subjectName", "testSet"],
31
44
  "additionalProperties": false
32
45
  },
33
46
  "TestStatus": {