Skip to content

Commit 8b69c38

Browse files
committed
chore(release): 1.4.0 [skip ci]
1 parent 1ae2231 commit 8b69c38

File tree

3 files changed

+115
-21
lines changed

3 files changed

+115
-21
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# [1.4.0](https://github.com/salesforcecli/plugin-agent/compare/1.3.4...1.4.0) (2024-12-05)
2+
3+
### Bug Fixes
4+
5+
- keep up with agents lib ([75d6403](https://github.com/salesforcecli/plugin-agent/commit/75d6403b466546181db2b697163b5b1b689a2266))
6+
- messages ([38eef81](https://github.com/salesforcecli/plugin-agent/commit/38eef81f144739596fc696eccb7264d55cffb6e6))
7+
8+
### Features
9+
10+
- add command stubs ([3f942b2](https://github.com/salesforcecli/plugin-agent/commit/3f942b22aed7d532f3243654292809af07dfb592))
11+
- implement agent test run ([81ec3a3](https://github.com/salesforcecli/plugin-agent/commit/81ec3a3d3fb253e8d721881dfba7fb0036323e84))
12+
- show completion progress ([4da8b5f](https://github.com/salesforcecli/plugin-agent/commit/4da8b5f667a08f27b300e495be09204770acd7e5))
13+
- show passing and failing tests ([e422ca5](https://github.com/salesforcecli/plugin-agent/commit/e422ca5436a9dc03fe42c8aef50486be6b8ddfd1))
14+
115
## [1.3.4](https://github.com/salesforcecli/plugin-agent/compare/1.3.3...1.3.4) (2024-12-03)
216

317
### Bug Fixes

README.md

Lines changed: 100 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ sf plugins
6464
- [`sf agent create`](#sf-agent-create)
6565
- [`sf agent generate spec`](#sf-agent-generate-spec)
6666
- [`sf agent test cancel`](#sf-agent-test-cancel)
67+
- [`sf agent test results`](#sf-agent-test-results)
68+
- [`sf agent test resume`](#sf-agent-test-resume)
6769
- [`sf agent test run`](#sf-agent-test-run)
6870

6971
## `sf agent create`
@@ -102,7 +104,7 @@ FLAG DESCRIPTIONS
102104
spec` command.
103105
```
104106

105-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.3.4/src/commands/agent/create.ts)_
107+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.4.0/src/commands/agent/create.ts)_
106108

107109
## `sf agent generate spec`
108110

@@ -145,21 +147,22 @@ EXAMPLES
145147
--company-description "A meaningful description"
146148
```
147149

148-
_See code: [src/commands/agent/generate/spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.3.4/src/commands/agent/generate/spec.ts)_
150+
_See code: [src/commands/agent/generate/spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.4.0/src/commands/agent/generate/spec.ts)_
149151

150152
## `sf agent test cancel`
151153

152154
Cancel a running test for an Agent.
153155

154156
```
155157
USAGE
156-
$ sf agent test cancel -o <value> -i <value> [--json] [--flags-dir <value>] [-r]
158+
$ sf agent test cancel -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-i <value>] [-r]
157159
158160
FLAGS
159-
-i, --job-id=<value> (required) The AiEvaluation ID.
160-
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
161-
configuration variable is already set.
162-
-r, --use-most-recent Use the job ID of the most recent test evaluation.
161+
-i, --job-id=<value> The AiEvaluation ID.
162+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
163+
configuration variable is already set.
164+
-r, --use-most-recent Use the job ID of the most recent test evaluation.
165+
--api-version=<value> Override the api version used for api requests made by this command
163166
164167
GLOBAL FLAGS
165168
--flags-dir=<value> Import flag values from a directory.
@@ -173,26 +176,103 @@ DESCRIPTION
173176
EXAMPLES
174177
Cancel a test for an Agent:
175178
176-
$ sf agent test cancel --id AiEvalId
179+
$ sf agent test cancel --job-id AiEvalId
180+
```
181+
182+
_See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.4.0/src/commands/agent/test/cancel.ts)_
183+
184+
## `sf agent test results`
185+
186+
Get the results of a test evaluation.
187+
188+
```
189+
USAGE
190+
$ sf agent test results -o <value> -i <value> [--json] [--flags-dir <value>] [--api-version <value>] [--result-format
191+
json|human]
192+
193+
FLAGS
194+
-i, --job-id=<value> (required) The AiEvaluation ID.
195+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
196+
configuration variable is already set.
197+
--api-version=<value> Override the api version used for api requests made by this command
198+
--result-format=<option> [default: human] Format of the test run results.
199+
<options: json|human>
200+
201+
GLOBAL FLAGS
202+
--flags-dir=<value> Import flag values from a directory.
203+
--json Format output as json.
204+
205+
DESCRIPTION
206+
Get the results of a test evaluation.
207+
208+
Provide the AiEvaluation ID to get the results of a test evaluation.
209+
210+
EXAMPLES
211+
$ sf agent test results --job-id AiEvalId
212+
```
213+
214+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.4.0/src/commands/agent/test/results.ts)_
215+
216+
## `sf agent test resume`
217+
218+
Resume a running test for an Agent.
219+
220+
```
221+
USAGE
222+
$ sf agent test resume -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-i <value>] [-r] [-w
223+
<value>] [--result-format json|human]
224+
225+
FLAGS
226+
-i, --job-id=<value> The AiEvaluation ID.
227+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
228+
configuration variable is already set.
229+
-r, --use-most-recent Use the job ID of the most recent test evaluation.
230+
-w, --wait=<value> [default: 5 minutes] Number of minutes to wait for the command to complete and display
231+
results to the terminal window.
232+
--api-version=<value> Override the api version used for api requests made by this command
233+
--result-format=<option> [default: human] Format of the test run results.
234+
<options: json|human>
235+
236+
GLOBAL FLAGS
237+
--flags-dir=<value> Import flag values from a directory.
238+
--json Format output as json.
239+
240+
DESCRIPTION
241+
Resume a running test for an Agent.
242+
243+
Resume a running test for an Agent, providing the AiEvaluation ID.
244+
245+
EXAMPLES
246+
Resume a test for an Agent:
247+
248+
$ sf agent test resume --job-id AiEvalId
249+
250+
FLAG DESCRIPTIONS
251+
-w, --wait=<value> Number of minutes to wait for the command to complete and display results to the terminal window.
252+
253+
If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
177254
```
178255

179-
_See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.3.4/src/commands/agent/test/cancel.ts)_
256+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.4.0/src/commands/agent/test/resume.ts)_
180257

181258
## `sf agent test run`
182259

183260
Start a test for an Agent.
184261

185262
```
186263
USAGE
187-
$ sf agent test run -o <value> -i <value> [--json] [--flags-dir <value>] [-w <value>] [-d <value>]
264+
$ sf agent test run -o <value> -n <value> [--json] [--flags-dir <value>] [--api-version <value>] [-w <value>]
265+
[--result-format json|human]
188266
189267
FLAGS
190-
-d, --output-dir=<value> Directory in which to store test run files.
191-
-i, --id=<value> (required) The AiEvalDefinitionVersion ID.
192-
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
193-
configuration variable is already set.
194-
-w, --wait=<value> Number of minutes to wait for the command to complete and display results to the terminal
195-
window.
268+
-n, --name=<value> (required) The name of the AiEvaluationDefinition to start.
269+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
270+
configuration variable is already set.
271+
-w, --wait=<value> Number of minutes to wait for the command to complete and display results to the
272+
terminal window.
273+
--api-version=<value> Override the api version used for api requests made by this command
274+
--result-format=<option> [default: human] Format of the test run results.
275+
<options: json|human>
196276
197277
GLOBAL FLAGS
198278
--flags-dir=<value> Import flag values from a directory.
@@ -206,18 +286,18 @@ DESCRIPTION
206286
EXAMPLES
207287
Start a test for an Agent:
208288
209-
$ sf agent test run --id AiEvalDefVerId
289+
$ sf agent test run --name AiEvalDefVerId
210290
211291
FLAG DESCRIPTIONS
212-
-i, --id=<value> The AiEvalDefinitionVersion ID.
292+
-n, --name=<value> The name of the AiEvaluationDefinition to start.
213293
214-
The AiEvalDefinitionVersion ID.
294+
The name of the AiEvaluationDefinition to start.
215295
216296
-w, --wait=<value> Number of minutes to wait for the command to complete and display results to the terminal window.
217297
218298
If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
219299
```
220300

221-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.3.4/src/commands/agent/test/run.ts)_
301+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.4.0/src/commands/agent/test/run.ts)_
222302

223303
<!-- commandsstop -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-agent",
33
"description": "Commands to interact with Salesforce agents",
4-
"version": "1.3.4",
4+
"version": "1.4.0",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {

0 commit comments

Comments
 (0)