Skip to content

Commit 76aea2b

Browse files
authored
Merge pull request #2564 from salesforcecli/release/2.121.1
Release PR for 2.121.1 as nightly
2 parents 88c59ec + 456b663 commit 76aea2b

3 files changed

Lines changed: 50 additions & 46 deletions

File tree

README.md

Lines changed: 39 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $ npm install -g @salesforce/cli
2525
$ sf COMMAND
2626
running command...
2727
$ sf (--version|-v)
28-
@salesforce/cli/2.121.0 linux-x64 node-v22.22.0
28+
@salesforce/cli/2.121.1 linux-x64 node-v22.22.0
2929
$ sf --help [COMMAND]
3030
USAGE
3131
$ sf COMMAND
@@ -248,7 +248,7 @@ EXAMPLES
248248
$ sf agent activate --api-name Resort_Manager --target-org my-org
249249
```
250250

251-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/activate.ts)_
251+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/activate.ts)_
252252

253253
## `sf agent create`
254254

@@ -315,7 +315,7 @@ EXAMPLES
315315
$ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
316316
```
317317

318-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/create.ts)_
318+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/create.ts)_
319319

320320
## `sf agent deactivate`
321321

@@ -355,7 +355,7 @@ EXAMPLES
355355
$ sf agent deactivate --api-name Resort_Manager --target-org my-org
356356
```
357357

358-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/deactivate.ts)_
358+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/deactivate.ts)_
359359

360360
## `sf agent generate agent-spec`
361361

@@ -462,7 +462,7 @@ EXAMPLES
462462
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
463463
```
464464

465-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/generate/agent-spec.ts)_
465+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/generate/agent-spec.ts)_
466466

467467
## `sf agent generate authoring-bundle`
468468

@@ -528,7 +528,7 @@ EXAMPLES
528528
other-package-dir/main/default --target-org my-dev-org
529529
```
530530

531-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/generate/authoring-bundle.ts)_
531+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/generate/authoring-bundle.ts)_
532532

533533
## `sf agent generate template`
534534

@@ -576,7 +576,7 @@ EXAMPLES
576576
force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
577577
```
578578

579-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/generate/template.ts)_
579+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/generate/template.ts)_
580580

581581
## `sf agent generate test-spec`
582582

@@ -637,7 +637,7 @@ EXAMPLES
637637
force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
638638
```
639639

640-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/generate/test-spec.ts)_
640+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/generate/test-spec.ts)_
641641

642642
## `sf agent preview`
643643

@@ -666,37 +666,41 @@ GLOBAL FLAGS
666666
DESCRIPTION
667667
Interact with an agent to preview how it responds to your statements, questions, and commands (utterances).
668668
669-
Use this command to have a natural language conversation with an agent while you code its Agent Script file.
670-
Previewing an agent works like an initial test to make sure it responds to your utterances as you expect. For example,
671-
you can test that the agent uses a particular topic when asked a question, and then whether it invokes the correct
672-
action associated with that topic. This command is the CLI-equivalent of the Preview panel in your org's Agentforce
673-
Builder UI.
669+
Use this command to have a natural language conversation with an agent, either while you code its local Agent Script
670+
file or when it's published to an org. Previewing an agent acts like an initial test to make sure it responds to your
671+
utterances as you expect. For example, you can test that the agent uses a particular topic when asked a question, and
672+
then whether it invokes the correct action associated with that topic. This command is the CLI-equivalent of the
673+
Preview panel in your org's Agentforce Builder UI.
674674
675-
This command uses the agent's local authoring bundle, which contains its Agent Script file. You can let the command
676-
provide a list of authoring bundles (labeled "(Agent Script)") to choose from or use the --authoring-bundle flag to
677-
specify a bundle's API name.
675+
Run without flags, this command provides a list of agents to preview, divided into two categories: "Agent Script",
676+
which are agents that have a local authoring bundle in your DX project, or "Published", which are agents that are
677+
published and activated in your org. Authoring bundles contain an agent's Agent Script file. You then choose the agent
678+
you want to preview from the list. Or you can use the --authoring-bundle flag to specify a local authoring bundle's
679+
API name or --api-name to specify an activated published agent.
678680
679-
You can use these two modes when previewing an agent from its Agent Script file:
681+
When previewing an agent from its Agent Script file, you can use these two modes:
680682
681683
- Simulated mode (Default): Uses only the Agent Script file to converse, and it simulates (mocks) all the actions. Use
682-
this mode if none of the Apex classes, flows, and prompt templates that implement your actions are available yet. The
684+
this mode if none of the Apex classes, flows, or prompt templates that implement your actions are available yet. The
683685
LLM uses the information about topics in the Agent Script file to simulate what the action does or how it responds.
684686
- Live mode: Uses the actual Apex classes, flows, and prompt templates in your development org in the agent preview.
685687
If you've changed the Apex classe, flows, or prompt templates in your local DX project, then you must deploy them to
686-
your development org if you want to use them in your live preview. You can use the Apex Replay Debugger to debug your
687-
Apex classes when using live mode.
688+
your development org if you want to use them in your live preview.
688689
689-
The interface is simple: in the "Start typing..." prompt, enter a statement, question, or command; when you're done,
690-
enter Return. Your utterance is posted on the right along with a timestamp. The agent then responds on the left. To
691-
exit the conversation, hit ESC or Control+C.
690+
You can use the Apex Replay Debugger to debug your Apex classes when using live mode for Agent Script files and for
691+
activated published agents; specify the --apex-debug flag.
692+
693+
Once connected to your agent, the preview interface is simple: in the "Start typing..." prompt, enter a statement,
694+
question, or command; when you're done, enter Return. Your utterance is posted on the right along with a timestamp.
695+
The agent then responds on the left. To exit the conversation, hit ESC or Control+C.
692696
693697
When the session concludes, the command asks if you want to save the API responses and chat transcripts. By default,
694698
the files are saved to the "./temp/agent-preview" directory. Specify a new default directory with the --output-dir
695699
flag.
696700
697701
EXAMPLES
698-
Preview an agent in simulated mode by choosing from a list of authoring bundles provided by the command; use the org
699-
with alias "my-dev-org":
702+
Preview an agent by choosing from the list of available local Agent Script or published agents. If previewing a
703+
local Agent Script agent, use simulated mode. Use the org with alias "my-dev-org".
700704
701705
$ sf agent preview --target-org my-dev-org
702706
@@ -706,7 +710,7 @@ EXAMPLES
706710
$ sf agent preview --use-live-actions --apex-debug --output-dir transcripts/my-preview
707711
```
708712

709-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/preview.ts)_
713+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/preview.ts)_
710714

711715
## `sf agent publish authoring-bundle`
712716

@@ -753,7 +757,7 @@ EXAMPLES
753757
$ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-dev-org
754758
```
755759

756-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/publish/authoring-bundle.ts)_
760+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/publish/authoring-bundle.ts)_
757761

758762
## `sf agent test create`
759763

@@ -808,7 +812,7 @@ EXAMPLES
808812
$ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
809813
```
810814

811-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/test/create.ts)_
815+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/test/create.ts)_
812816

813817
## `sf agent test list`
814818

@@ -843,7 +847,7 @@ EXAMPLES
843847
$ sf agent test list --target-org my-org
844848
```
845849

846-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/test/list.ts)_
850+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/test/list.ts)_
847851

848852
## `sf agent test results`
849853

@@ -909,7 +913,7 @@ FLAG DESCRIPTIONS
909913
expression when using custom evaluations.
910914
```
911915

912-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/test/results.ts)_
916+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/test/results.ts)_
913917

914918
## `sf agent test resume`
915919

@@ -982,7 +986,7 @@ FLAG DESCRIPTIONS
982986
expression when using custom evaluations.
983987
```
984988

985-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/test/resume.ts)_
989+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/test/resume.ts)_
986990

987991
## `sf agent test run`
988992

@@ -1056,7 +1060,7 @@ FLAG DESCRIPTIONS
10561060
expression when using custom evaluations.
10571061
```
10581062

1059-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/test/run.ts)_
1063+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/test/run.ts)_
10601064

10611065
## `sf agent validate authoring-bundle`
10621066

@@ -1103,7 +1107,7 @@ EXAMPLES
11031107
$ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
11041108
```
11051109

1106-
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.6/src/commands/agent/validate/authoring-bundle.ts)_
1110+
_See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.26.7/src/commands/agent/validate/authoring-bundle.ts)_
11071111

11081112
## `sf alias list`
11091113

@@ -1836,7 +1840,7 @@ EXAMPLES
18361840
$ sf api request graphql --body example.txt --stream-to-file output.txt --include
18371841
```
18381842

1839-
_See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.7/src/commands/api/request/graphql.ts)_
1843+
_See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.8/src/commands/api/request/graphql.ts)_
18401844

18411845
## `sf api request rest [URL]`
18421846

@@ -1945,7 +1949,7 @@ FLAG DESCRIPTIONS
19451949
https://github.com/salesforcecli/plugin-api/tree/main/test/test-files/data-project.
19461950
```
19471951

1948-
_See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.7/src/commands/api/request/rest.ts)_
1952+
_See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.8/src/commands/api/request/rest.ts)_
19491953

19501954
## `sf autocomplete [SHELL]`
19511955

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/cli",
33
"description": "The Salesforce CLI",
4-
"version": "2.121.0",
4+
"version": "2.121.1",
55
"author": "Salesforce",
66
"bin": {
77
"sf": "./bin/run.js",
@@ -157,9 +157,9 @@
157157
"@oclif/plugin-which": "3.2.43",
158158
"@salesforce/core": "8.24.3",
159159
"@salesforce/kit": "^3.1.6",
160-
"@salesforce/plugin-agent": "1.26.6",
160+
"@salesforce/plugin-agent": "1.26.7",
161161
"@salesforce/plugin-apex": "3.9.5",
162-
"@salesforce/plugin-api": "1.3.7",
162+
"@salesforce/plugin-api": "1.3.8",
163163
"@salesforce/plugin-auth": "4.1.3",
164164
"@salesforce/plugin-data": "4.0.67",
165165
"@salesforce/plugin-deploy-retrieve": "3.24.7",

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,10 +2208,10 @@
22082208
jszip "^3.10.1"
22092209
object-treeify "^2"
22102210

2211-
"@salesforce/plugin-agent@1.26.6":
2212-
version "1.26.6"
2213-
resolved "https://registry.yarnpkg.com/@salesforce/plugin-agent/-/plugin-agent-1.26.6.tgz#353a2b924202e7b521504a8ea10fe35c84710804"
2214-
integrity sha512-5hQuxkdJ7xYoM0oKBVcbYlSH36FqYgg2d8wlk3HJgez/f6Zd/rRQ2VATRmnjme8K4swpyIDT7xfI1qJxBONPLA==
2211+
"@salesforce/plugin-agent@1.26.7":
2212+
version "1.26.7"
2213+
resolved "https://registry.yarnpkg.com/@salesforce/plugin-agent/-/plugin-agent-1.26.7.tgz#7b0444220f98bd729106d42170da11b363ee3965"
2214+
integrity sha512-AHvCYuJxdX2RrPW8MQk20BY/ZdFtRpTeAx8GLL9RhgSjy8kxnTNg9jbZlvZ3iW+DtoB8oepYsmas/7bLg6TfgQ==
22152215
dependencies:
22162216
"@inquirer/core" "^10.3.2"
22172217
"@inquirer/prompts" "^7.10.1"
@@ -2243,10 +2243,10 @@
22432243
"@salesforce/sf-plugins-core" "^12.2.6"
22442244
ansis "^3.3.1"
22452245

2246-
"@salesforce/plugin-api@1.3.7":
2247-
version "1.3.7"
2248-
resolved "https://registry.yarnpkg.com/@salesforce/plugin-api/-/plugin-api-1.3.7.tgz#1d3a1c7aafde3c7bc30c2f87103a30aca644bbac"
2249-
integrity sha512-i2NknQshuZi6Dp0gZhSi/+WOLMRqHj2gsRZkzOOpdDdZy0/56CAJuS4VQ0AlWNs4f1WyRrmnae6BThvXr/C59w==
2246+
"@salesforce/plugin-api@1.3.8":
2247+
version "1.3.8"
2248+
resolved "https://registry.yarnpkg.com/@salesforce/plugin-api/-/plugin-api-1.3.8.tgz#497d4f4c28fc7f127b03481abe6d7d65c4a93c22"
2249+
integrity sha512-yXqXmoXmbyALzVbGZ/b98yEAbgcZE1YoEfEWn/VRmul9W7/ZLCtBd5AKia5AAEWT1ilOf6P3pj83D8TlrcGk2Q==
22502250
dependencies:
22512251
"@oclif/core" "^4"
22522252
"@salesforce/core" "^8.8.1"

0 commit comments

Comments
 (0)