@salesforce/plugin-agent 1.6.0 → 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 +19 -19
- package/lib/commands/agent/create.d.ts +1 -1
- package/lib/commands/agent/create.js +4 -4
- package/lib/commands/agent/create.js.map +1 -1
- 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/messages/agent.create.md +4 -4
- package/npm-shrinkwrap.json +10 -10
- package/oclif.lock +9 -9
- package/oclif.manifest.json +11 -8
- package/package.json +4 -4
- package/schemas/agent-test-results.json +19 -6
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ USAGE
|
|
|
80
80
|
$ sf agent create -o <value> -f <value> -n <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
81
81
|
|
|
82
82
|
FLAGS
|
|
83
|
-
-f, --
|
|
83
|
+
-f, --spec=<value> (required) Path to an agent spec file.
|
|
84
84
|
-n, --name=<value> (required) API name of the new agent.
|
|
85
85
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
86
86
|
configuration variable is already set.
|
|
@@ -94,8 +94,8 @@ DESCRIPTION
|
|
|
94
94
|
Create an agent in your org from a local agent spec file.
|
|
95
95
|
|
|
96
96
|
To generate an agent spec file, run the "agent generate spec" CLI command, which outputs a JSON file with the list of
|
|
97
|
-
jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --
|
|
98
|
-
|
|
97
|
+
jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --spec flag of this
|
|
98
|
+
command, along with the name of the new agent.
|
|
99
99
|
|
|
100
100
|
When this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new
|
|
101
101
|
agent already has a list of topics and actions that were automatically created from the list of jobs in the provided
|
|
@@ -108,10 +108,10 @@ DESCRIPTION
|
|
|
108
108
|
EXAMPLES
|
|
109
109
|
Create an agent called "CustomerSupportAgent" in an org with alias "my-org" using the specified agent spec file:
|
|
110
110
|
|
|
111
|
-
$ sf agent create --name CustomerSupportAgent --
|
|
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 -->
|
|
@@ -12,7 +12,7 @@ export default class AgentCreate extends SfCommand<AgentCreateResult> {
|
|
|
12
12
|
static readonly flags: {
|
|
13
13
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
14
|
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
-
|
|
15
|
+
spec: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
16
|
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
17
|
};
|
|
18
18
|
run(): Promise<AgentCreateResult>;
|
|
@@ -21,10 +21,10 @@ export default class AgentCreate extends SfCommand {
|
|
|
21
21
|
static flags = {
|
|
22
22
|
'target-org': Flags.requiredOrg(),
|
|
23
23
|
'api-version': Flags.orgApiVersion(),
|
|
24
|
-
|
|
24
|
+
spec: Flags.file({
|
|
25
25
|
char: 'f',
|
|
26
26
|
required: true,
|
|
27
|
-
summary: messages.getMessage('flags.
|
|
27
|
+
summary: messages.getMessage('flags.spec.summary'),
|
|
28
28
|
}),
|
|
29
29
|
name: Flags.string({
|
|
30
30
|
char: 'n',
|
|
@@ -34,7 +34,7 @@ export default class AgentCreate extends SfCommand {
|
|
|
34
34
|
};
|
|
35
35
|
async run() {
|
|
36
36
|
const { flags } = await this.parse(AgentCreate);
|
|
37
|
-
const jsonParsingStage = `Parsing ${flags
|
|
37
|
+
const jsonParsingStage = `Parsing ${flags.spec}`;
|
|
38
38
|
const mso = new MultiStageOutput({
|
|
39
39
|
jsonEnabled: this.jsonEnabled(),
|
|
40
40
|
title: `Creating ${flags.name} Agent`,
|
|
@@ -48,7 +48,7 @@ export default class AgentCreate extends SfCommand {
|
|
|
48
48
|
});
|
|
49
49
|
mso.goto(jsonParsingStage);
|
|
50
50
|
const agentConfig = {
|
|
51
|
-
...JSON.parse(fs.readFileSync(flags
|
|
51
|
+
...JSON.parse(fs.readFileSync(flags.spec, 'utf8')),
|
|
52
52
|
name: flags.name,
|
|
53
53
|
};
|
|
54
54
|
// @ts-expect-error not using async method in callback
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/agent/create.ts"],"names":[],"mappings":"AAAA;;;;;GAK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MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,OAAQ,CAAC,CAAC;QAChG,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAEhD,GAAG,CAAC,IAAI,EAAE,CAAC;QAEX,IAAI,CAAC,GAAG,CACN,OAAO,CAAC,SAAS;YACf,CAAC,CAAC,QAAQ,CACN,OAAO,EACP,wBAAwB,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,IAAI,gBAAgB,GAAG,CAClG;YACH,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,0BAA0B,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC,YAAY,IAAI,EAAE,EAAE,CAAC,CAC3F,CAAC;QACF,IAAI,CAAC,GAAG,CAAC,OAAO,QAAQ,CAAC,KAAK,EAAE,4BAA4B,KAAK,CAAC,IAAI,EAAE,CAAC,oCAAoC,CAAC,CAAC;QAE/G,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;IAC1C,CAAC"}
|
|
@@ -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,U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AAM,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/messages/agent.create.md
CHANGED
|
@@ -4,13 +4,13 @@ Create an agent in your org from a local agent spec file.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
To generate an agent spec file, run the "agent generate spec" CLI command, which outputs a JSON file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --
|
|
7
|
+
To generate an agent spec file, run the "agent generate spec" CLI command, which outputs a JSON file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --spec flag of this command, along with the name of the new agent.
|
|
8
8
|
|
|
9
9
|
When this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new agent already has a list of topics and actions that were automatically created from the list of jobs in the provided agent spec file. This command also retrieves all the metadata files associated with the new agent to your local DX project.
|
|
10
10
|
|
|
11
|
-
To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name <api-name-of-your-agent>".
|
|
11
|
+
To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name <api-name-of-your-agent>".
|
|
12
12
|
|
|
13
|
-
# flags.
|
|
13
|
+
# flags.spec.summary
|
|
14
14
|
|
|
15
15
|
Path to an agent spec file.
|
|
16
16
|
|
|
@@ -22,4 +22,4 @@ API name of the new agent.
|
|
|
22
22
|
|
|
23
23
|
- Create an agent called "CustomerSupportAgent" in an org with alias "my-org" using the specified agent spec file:
|
|
24
24
|
|
|
25
|
-
<%= config.bin %> <%= command.id %> --name CustomerSupportAgent --
|
|
25
|
+
<%= config.bin %> <%= command.id %> --name CustomerSupportAgent --spec ./config/agentSpec.json --target-org my-org
|
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
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"agent:create": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "To generate an agent spec file, run the \"agent generate spec\" CLI command, which outputs a JSON file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --
|
|
6
|
+
"description": "To generate an agent spec file, run the \"agent generate spec\" CLI command, which outputs a JSON file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --spec flag of this command, along with the name of the new agent.\n\nWhen this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new agent already has a list of topics and actions that were automatically created from the list of jobs in the provided agent spec file. This command also retrieves all the metadata files associated with the new agent to your local DX project.\n\nTo open the new agent in your org's Agent Builder UI, run this command: \"sf org open agent --name <api-name-of-your-agent>\".",
|
|
7
7
|
"examples": [
|
|
8
|
-
"Create an agent called \"CustomerSupportAgent\" in an org with alias \"my-org\" using the specified agent spec file:\n<%= config.bin %> <%= command.id %> --name CustomerSupportAgent --
|
|
8
|
+
"Create an agent called \"CustomerSupportAgent\" in an org with alias \"my-org\" using the specified agent spec file:\n<%= config.bin %> <%= command.id %> --name CustomerSupportAgent --spec ./config/agentSpec.json --target-org my-org"
|
|
9
9
|
],
|
|
10
10
|
"flags": {
|
|
11
11
|
"json": {
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"multiple": false,
|
|
41
41
|
"type": "option"
|
|
42
42
|
},
|
|
43
|
-
"
|
|
43
|
+
"spec": {
|
|
44
44
|
"char": "f",
|
|
45
|
-
"name": "
|
|
45
|
+
"name": "spec",
|
|
46
46
|
"required": true,
|
|
47
47
|
"summary": "Path to an agent spec file.",
|
|
48
48
|
"hasDynamicHelp": false,
|
|
@@ -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": {
|