Skip to content

Commit fd096b6

Browse files
committed
chore(release): 1.27.4-preview.0 [skip ci]
1 parent 5ea5214 commit fd096b6

File tree

3 files changed

+38
-22
lines changed

3 files changed

+38
-22
lines changed

README.md

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ EXAMPLES
112112
$ sf agent activate --api-name Resort_Manager --target-org my-org
113113
```
114114

115-
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/activate.ts)_
115+
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/activate.ts)_
116116

117117
## `sf agent create`
118118

@@ -179,7 +179,7 @@ EXAMPLES
179179
$ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
180180
```
181181

182-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/create.ts)_
182+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/create.ts)_
183183

184184
## `sf agent deactivate`
185185

@@ -219,7 +219,7 @@ EXAMPLES
219219
$ sf agent deactivate --api-name Resort_Manager --target-org my-org
220220
```
221221

222-
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/deactivate.ts)_
222+
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/deactivate.ts)_
223223

224224
## `sf agent generate agent-spec`
225225

@@ -326,7 +326,7 @@ EXAMPLES
326326
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
327327
```
328328

329-
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/generate/agent-spec.ts)_
329+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/generate/agent-spec.ts)_
330330

331331
## `sf agent generate authoring-bundle`
332332

@@ -392,7 +392,7 @@ EXAMPLES
392392
other-package-dir/main/default --target-org my-dev-org
393393
```
394394

395-
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/generate/authoring-bundle.ts)_
395+
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/generate/authoring-bundle.ts)_
396396

397397
## `sf agent generate template`
398398

@@ -440,7 +440,7 @@ EXAMPLES
440440
force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
441441
```
442442

443-
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/generate/template.ts)_
443+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/generate/template.ts)_
444444

445445
## `sf agent generate test-spec`
446446

@@ -501,16 +501,16 @@ EXAMPLES
501501
force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
502502
```
503503

504-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/generate/test-spec.ts)_
504+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/generate/test-spec.ts)_
505505

506506
## `sf agent preview`
507507

508508
Interact with an agent to preview how it responds to your statements, questions, and commands (utterances).
509509

510510
```
511511
USAGE
512-
$ sf agent preview -o <value> [--flags-dir <value>] [--api-version <value>] [-n <value>] [--authoring-bundle
513-
<value>] [-d <value>] [-x] [--use-live-actions]
512+
$ sf agent preview -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>]
513+
[--authoring-bundle <value>] [-d <value>] [-x] [--use-live-actions] [--utterance <value>] [--session-id <value>]
514514
515515
FLAGS
516516
-d, --output-dir=<value> Directory where conversation transcripts are saved.
@@ -521,11 +521,16 @@ FLAGS
521521
--api-version=<value> Override the api version used for api requests made by this command
522522
--authoring-bundle=<value> API name of the authoring bundle metadata component that contains the agent's Agent
523523
Script file.
524+
--session-id=<value> Session ID of an in-progress preview session; use with --utterance to send a message
525+
to that session and return the response without starting the interactive preview.
524526
--use-live-actions Use real actions in the org; if not specified, preview uses AI to simulate (mock)
525527
actions.
528+
--utterance=<value> Message to send to the agent; creates a new session, returns the response, and exits
529+
without starting the interactive preview.
526530
527531
GLOBAL FLAGS
528532
--flags-dir=<value> Import flag values from a directory.
533+
--json Format output as json.
529534
530535
DESCRIPTION
531536
Interact with an agent to preview how it responds to your statements, questions, and commands (utterances).
@@ -572,9 +577,20 @@ EXAMPLES
572577
"./transcripts/my-preview" directory, enable the Apex debug logs, and use your default org:
573578
574579
$ sf agent preview --use-live-actions --apex-debug --output-dir transcripts/my-preview
580+
581+
Send a message to the agent and print the response without starting the interactive preview (requires --api-name or
582+
--authoring-bundle):
583+
584+
$ sf agent preview --authoring-bundle My_Agent_Bundle --utterance "What can you help me with?" --target-org \
585+
my-dev-org
586+
587+
Send a follow-up message to an existing preview session:
588+
589+
$ sf agent preview --authoring-bundle My_Agent_Bundle --session-id <session-id> --utterance "Tell me more" \
590+
--target-org my-dev-org
575591
```
576592

577-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/preview.ts)_
593+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/preview.ts)_
578594

579595
## `sf agent publish authoring-bundle`
580596

@@ -623,7 +639,7 @@ EXAMPLES
623639
$ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-dev-org
624640
```
625641

626-
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/publish/authoring-bundle.ts)_
642+
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/publish/authoring-bundle.ts)_
627643

628644
## `sf agent test create`
629645

@@ -678,7 +694,7 @@ EXAMPLES
678694
$ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
679695
```
680696

681-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/test/create.ts)_
697+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/test/create.ts)_
682698

683699
## `sf agent test list`
684700

@@ -713,7 +729,7 @@ EXAMPLES
713729
$ sf agent test list --target-org my-org
714730
```
715731

716-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/test/list.ts)_
732+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/test/list.ts)_
717733

718734
## `sf agent test results`
719735

@@ -779,7 +795,7 @@ FLAG DESCRIPTIONS
779795
expression when using custom evaluations.
780796
```
781797

782-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/test/results.ts)_
798+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/test/results.ts)_
783799

784800
## `sf agent test resume`
785801

@@ -852,7 +868,7 @@ FLAG DESCRIPTIONS
852868
expression when using custom evaluations.
853869
```
854870

855-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/test/resume.ts)_
871+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/test/resume.ts)_
856872

857873
## `sf agent test run`
858874

@@ -926,7 +942,7 @@ FLAG DESCRIPTIONS
926942
expression when using custom evaluations.
927943
```
928944

929-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/test/run.ts)_
945+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/test/run.ts)_
930946

931947
## `sf agent validate authoring-bundle`
932948

@@ -973,6 +989,6 @@ EXAMPLES
973989
$ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
974990
```
975991

976-
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.3/src/commands/agent/validate/authoring-bundle.ts)_
992+
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0/src/commands/agent/validate/authoring-bundle.ts)_
977993

978994
<!-- 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.27.3",
4+
"version": "1.27.4-preview.0",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,10 +2076,10 @@
20762076
resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8"
20772077
integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==
20782078

2079-
"@salesforce/agents@^0.22.1":
2080-
version "0.22.1"
2081-
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.22.1.tgz#987ee07365811ccdd00d614807f90bc995549927"
2082-
integrity sha512-4hqhpO7w08D+Po5KFywFpXlAOS6/jn/wiWWdinIgFx0XGEPUBJTz8OXxMmVQ7s9e1/gmqaoyGzBy8m3C9GCpJA==
2079+
"@salesforce/agents@^0.22.2":
2080+
version "0.22.3"
2081+
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.22.3.tgz#b97989b7c1eb8a488bbaf83ad421e661b98120e8"
2082+
integrity sha512-PRKXZC8UQMEQj9mEBwjKhJuK5KVhMOs/ENdng9njiwHUSQXBaPWIelhKYdz/ws6H7xCsJyUjmknmQc9VvnLI9w==
20832083
dependencies:
20842084
"@salesforce/core" "^8.24.0"
20852085
"@salesforce/kit" "^3.2.4"

0 commit comments

Comments
 (0)