@salesforce/plugin-agent 1.6.1 → 1.7.0
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/results.d.ts +1 -1
- package/lib/commands/agent/test/resume.d.ts +1 -1
- package/lib/commands/agent/test/run.d.ts +1 -1
- package/lib/flags.d.ts +1 -1
- package/lib/flags.js +1 -6
- package/lib/flags.js.map +1 -1
- package/lib/handleTestResults.d.ts +1 -1
- package/lib/handleTestResults.js +8 -1
- package/lib/handleTestResults.js.map +1 -1
- package/npm-shrinkwrap.json +10 -10
- package/oclif.lock +9 -9
- package/oclif.manifest.json +7 -4
- package/package.json +4 -4
- package/schemas/agent-test-results.json +19 -6
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.
|
|
114
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.0/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.
|
|
139
|
+
_See code: [src/commands/agent/generate/definition.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.0/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.
|
|
200
|
+
_See code: [src/commands/agent/generate/spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.0/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.
|
|
223
|
+
_See code: [src/commands/agent/generate/testset.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.0/src/commands/agent/generate/testset.ts)_
|
|
224
224
|
|
|
225
225
|
## `sf agent preview`
|
|
226
226
|
|
|
@@ -255,7 +255,7 @@ 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.
|
|
258
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.0/src/commands/agent/preview.ts)_
|
|
259
259
|
|
|
260
260
|
## `sf agent test cancel`
|
|
261
261
|
|
|
@@ -287,7 +287,7 @@ EXAMPLES
|
|
|
287
287
|
$ sf agent test cancel --job-id AiEvalId
|
|
288
288
|
```
|
|
289
289
|
|
|
290
|
-
_See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.
|
|
290
|
+
_See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.0/src/commands/agent/test/cancel.ts)_
|
|
291
291
|
|
|
292
292
|
## `sf agent test results`
|
|
293
293
|
|
|
@@ -296,7 +296,7 @@ Get the results of a test evaluation.
|
|
|
296
296
|
```
|
|
297
297
|
USAGE
|
|
298
298
|
$ sf agent test results -o <value> -i <value> [--json] [--flags-dir <value>] [--api-version <value>] [--result-format
|
|
299
|
-
json|human|junit] [-f <value>]
|
|
299
|
+
json|human|junit|tap] [-f <value>]
|
|
300
300
|
|
|
301
301
|
FLAGS
|
|
302
302
|
-f, --output-dir=<value> Directory to write the test results to.
|
|
@@ -305,7 +305,7 @@ FLAGS
|
|
|
305
305
|
configuration variable is already set.
|
|
306
306
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
307
307
|
--result-format=<option> [default: human] Format of the test run results.
|
|
308
|
-
<options: json|human|junit>
|
|
308
|
+
<options: json|human|junit|tap>
|
|
309
309
|
|
|
310
310
|
GLOBAL FLAGS
|
|
311
311
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -326,7 +326,7 @@ FLAG DESCRIPTIONS
|
|
|
326
326
|
results will not be written.
|
|
327
327
|
```
|
|
328
328
|
|
|
329
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.
|
|
329
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.0/src/commands/agent/test/results.ts)_
|
|
330
330
|
|
|
331
331
|
## `sf agent test resume`
|
|
332
332
|
|
|
@@ -335,7 +335,7 @@ Resume a running test for an Agent.
|
|
|
335
335
|
```
|
|
336
336
|
USAGE
|
|
337
337
|
$ 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>]
|
|
338
|
+
<value>] [--result-format json|human|junit|tap] [-f <value>]
|
|
339
339
|
|
|
340
340
|
FLAGS
|
|
341
341
|
-f, --output-dir=<value> Directory to write the test results to.
|
|
@@ -347,7 +347,7 @@ FLAGS
|
|
|
347
347
|
results to the terminal window.
|
|
348
348
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
349
349
|
--result-format=<option> [default: human] Format of the test run results.
|
|
350
|
-
<options: json|human|junit>
|
|
350
|
+
<options: json|human|junit|tap>
|
|
351
351
|
|
|
352
352
|
GLOBAL FLAGS
|
|
353
353
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -374,7 +374,7 @@ FLAG DESCRIPTIONS
|
|
|
374
374
|
If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
|
|
375
375
|
```
|
|
376
376
|
|
|
377
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.
|
|
377
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.0/src/commands/agent/test/resume.ts)_
|
|
378
378
|
|
|
379
379
|
## `sf agent test run`
|
|
380
380
|
|
|
@@ -383,7 +383,7 @@ Start a test for an Agent.
|
|
|
383
383
|
```
|
|
384
384
|
USAGE
|
|
385
385
|
$ 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>]
|
|
386
|
+
[--result-format json|human|junit|tap] [-f <value>]
|
|
387
387
|
|
|
388
388
|
FLAGS
|
|
389
389
|
-f, --output-dir=<value> Directory to write the test results to.
|
|
@@ -394,7 +394,7 @@ FLAGS
|
|
|
394
394
|
terminal window.
|
|
395
395
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
396
396
|
--result-format=<option> [default: human] Format of the test run results.
|
|
397
|
-
<options: json|human|junit>
|
|
397
|
+
<options: json|human|junit|tap>
|
|
398
398
|
|
|
399
399
|
GLOBAL FLAGS
|
|
400
400
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -425,6 +425,6 @@ FLAG DESCRIPTIONS
|
|
|
425
425
|
If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
|
|
426
426
|
```
|
|
427
427
|
|
|
428
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.
|
|
428
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.7.0/src/commands/agent/test/run.ts)_
|
|
429
429
|
|
|
430
430
|
<!-- 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>;
|
|
@@ -13,7 +13,7 @@ export default class AgentTestRun extends SfCommand<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>;
|
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
|
|
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;
|
package/lib/handleTestResults.js
CHANGED
|
@@ -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;
|
|
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,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/G,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,OAAO,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,EACtC,EAAE,EACF,MAAM,EACN,OAAO,EACP,WAAW,EACX,SAAS,GAOV;IACC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,kDAAkD;QAClD,OAAO;IACT,CAAC;IAED,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IAEnC,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,MAAM,EAAE,CAAC;QACtB,MAAM,SAAS,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;QAC5C,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAClB,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,cAAc,CAAC,SAAS,EAAE,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"}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/plugin-agent",
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.7.0",
|
|
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.
|
|
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.
|
|
3157
|
-
"resolved": "https://registry.npmjs.org/@salesforce/agents/-/agents-0.
|
|
3158
|
-
"integrity": "sha512-
|
|
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.
|
|
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.
|
|
3774
|
-
"resolved": "https://registry.npmjs.org/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.10.
|
|
3775
|
-
"integrity": "sha512-
|
|
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.
|
|
1426
|
-
version "0.
|
|
1427
|
-
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.
|
|
1428
|
-
integrity sha512-
|
|
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.
|
|
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.
|
|
1581
|
-
version "12.10.
|
|
1582
|
-
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.10.
|
|
1583
|
-
integrity sha512-
|
|
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"
|
package/oclif.manifest.json
CHANGED
|
@@ -512,7 +512,8 @@
|
|
|
512
512
|
"options": [
|
|
513
513
|
"json",
|
|
514
514
|
"human",
|
|
515
|
-
"junit"
|
|
515
|
+
"junit",
|
|
516
|
+
"tap"
|
|
516
517
|
],
|
|
517
518
|
"type": "option"
|
|
518
519
|
},
|
|
@@ -628,7 +629,8 @@
|
|
|
628
629
|
"options": [
|
|
629
630
|
"json",
|
|
630
631
|
"human",
|
|
631
|
-
"junit"
|
|
632
|
+
"junit",
|
|
633
|
+
"tap"
|
|
632
634
|
],
|
|
633
635
|
"type": "option"
|
|
634
636
|
},
|
|
@@ -738,7 +740,8 @@
|
|
|
738
740
|
"options": [
|
|
739
741
|
"json",
|
|
740
742
|
"human",
|
|
741
|
-
"junit"
|
|
743
|
+
"junit",
|
|
744
|
+
"tap"
|
|
742
745
|
],
|
|
743
746
|
"type": "option"
|
|
744
747
|
},
|
|
@@ -781,5 +784,5 @@
|
|
|
781
784
|
]
|
|
782
785
|
}
|
|
783
786
|
},
|
|
784
|
-
"version": "1.
|
|
787
|
+
"version": "1.7.0"
|
|
785
788
|
}
|
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.
|
|
4
|
+
"version": "1.7.0",
|
|
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.
|
|
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.
|
|
226
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
225
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.7.0.crt",
|
|
226
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.7.0.sig"
|
|
227
227
|
}
|
|
228
228
|
}
|
|
@@ -20,14 +20,27 @@
|
|
|
20
20
|
"errorMessage": {
|
|
21
21
|
"type": "string"
|
|
22
22
|
},
|
|
23
|
-
"
|
|
24
|
-
"type": "
|
|
25
|
-
|
|
26
|
-
|
|
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", "
|
|
43
|
+
"required": ["status", "startTime", "subjectName", "testSet"],
|
|
31
44
|
"additionalProperties": false
|
|
32
45
|
},
|
|
33
46
|
"TestStatus": {
|