@salesforce/cli 2.88.6 → 2.89.1
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 +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +13 -21
- package/package.json +2 -2
package/README.md
CHANGED
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.89.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/cli",
|
|
9
|
-
"version": "2.
|
|
9
|
+
"version": "2.89.1",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"dependencies": {
|
package/oclif.manifest.json
CHANGED
|
@@ -4825,11 +4825,11 @@
|
|
|
4825
4825
|
"agent:create": {
|
|
4826
4826
|
"aliases": [],
|
|
4827
4827
|
"args": {},
|
|
4828
|
-
"description": "To run this
|
|
4828
|
+
"description": "To run this command, you must have an agent spec file, which is a YAML file that define the agent properties and contains a list of AI-generated topics. Topics define the range of jobs the agent can handle. Use the \"agent generate agent-spec\" CLI command to generate an agent spec file. Then specify the file to this command using the --spec flag, along with the name (label) of the new agent with the --name flag. If you don't specify any of the required flags, the command prompts you.\n\nWhen this command completes, your org contains the new agent, which you can then edit and customize in the Agent Builder UI. The new agent's topics are the same as the ones listed in the agent spec file. The agent might also have some AI-generated actions, or you can add them. This command also retrieves all the metadata files associated with the new agent to your local Salesforce DX project.\n\nUse the --preview flag to review what the agent looks like without actually saving it in your org. When previewing, the command creates a JSON file in the current directory with all the agent details. The name of the JSON file is the agent's API name and a timestamp.\n\nTo open the new agent in your org's Agent Builder UI, run this command: \"sf org open agent --api-name <api-name>\".",
|
|
4829
4829
|
"examples": [
|
|
4830
4830
|
"Create an agent by being prompted for the required information, such as the agent spec file and agent name, and then create it in your default org:\n<%= config.bin %> <%= command.id %>",
|
|
4831
|
-
"Create an agent by specifying the agent name, API name, and spec file with flags; use the org with alias \"my-org\"; the command fails if the API name is already being used in your org:\n<%= config.bin %> <%= command.id %> --
|
|
4832
|
-
"Preview the creation of an agent named \"Resort Manager\" and use your default org:\n<%= config.bin %> <%= command.id %> --
|
|
4831
|
+
"Create an agent by specifying the agent name, API name, and spec file with flags; use the org with alias \"my-org\"; the command fails if the API name is already being used in your org:\n<%= config.bin %> <%= command.id %> --name \"Resort Manager\" --api-name Resort_Manager --spec specs/resortManagerAgent.yaml --target-org my-org",
|
|
4832
|
+
"Preview the creation of an agent named \"Resort Manager\" and use your default org:\n<%= config.bin %> <%= command.id %> --name \"Resort Manager\" --spec specs/resortManagerAgent.yaml --preview"
|
|
4833
4833
|
],
|
|
4834
4834
|
"flags": {
|
|
4835
4835
|
"json": {
|
|
@@ -4864,15 +4864,15 @@
|
|
|
4864
4864
|
"multiple": false,
|
|
4865
4865
|
"type": "option"
|
|
4866
4866
|
},
|
|
4867
|
-
"
|
|
4868
|
-
"name": "
|
|
4867
|
+
"name": {
|
|
4868
|
+
"name": "name",
|
|
4869
4869
|
"summary": "Name (label) of the new agent.",
|
|
4870
4870
|
"hasDynamicHelp": false,
|
|
4871
4871
|
"multiple": false,
|
|
4872
4872
|
"type": "option"
|
|
4873
4873
|
},
|
|
4874
|
-
"
|
|
4875
|
-
"name": "
|
|
4874
|
+
"api-name": {
|
|
4875
|
+
"name": "api-name",
|
|
4876
4876
|
"summary": "API name of the new agent; if not specified, the API name is derived from the agent name (label); the API name must not exist in the org.",
|
|
4877
4877
|
"hasDynamicHelp": false,
|
|
4878
4878
|
"multiple": false,
|
|
@@ -4906,7 +4906,6 @@
|
|
|
4906
4906
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
4907
4907
|
"pluginName": "@salesforce/plugin-agent",
|
|
4908
4908
|
"pluginType": "jit",
|
|
4909
|
-
"state": "beta",
|
|
4910
4909
|
"strict": true,
|
|
4911
4910
|
"summary": "Create an agent in your org using a local agent spec file.",
|
|
4912
4911
|
"enableJsonFlag": true,
|
|
@@ -4927,7 +4926,7 @@
|
|
|
4927
4926
|
"agent:preview": {
|
|
4928
4927
|
"aliases": [],
|
|
4929
4928
|
"args": {},
|
|
4930
|
-
"description": "Use this command to have a natural language conversation with an active agent in your org, as if you were an actual user. The interface is simple: in the \"Start typing...\" prompt, enter a statement, question, or command; when you're done, enter Return. Your utterance is posted on the right along with a timestamp. The agent then responds on the left. To exit the conversation, hit ESC or Control+C.\n\nThis command is useful to test if the agent responds to your utterances as you expect. For example, you can test that the agent uses a particular topic when asked a question, and then whether it invokes the correct action associated with that topic. This command is the CLI-equivalent of the Conversation Preview panel in your org's Agent Builder UI.\n\nWhen the session concludes, the command asks if you want to save the API responses and chat transcripts. By default, the files are saved to the \"./temp/agent-preview\" directory. Specify a new default directory by setting the environment variable \"SF_AGENT_PREVIEW_OUTPUT_DIR\" to the directory. Or you can pass the directory to the --output-dir flag.\n\nFind the agent's API name in its main details page in your org's Agent page in Setup.\n\nBefore you use this command, you must complete these steps:\n
|
|
4929
|
+
"description": "Use this command to have a natural language conversation with an active agent in your org, as if you were an actual user. The interface is simple: in the \"Start typing...\" prompt, enter a statement, question, or command; when you're done, enter Return. Your utterance is posted on the right along with a timestamp. The agent then responds on the left. To exit the conversation, hit ESC or Control+C.\n\nThis command is useful to test if the agent responds to your utterances as you expect. For example, you can test that the agent uses a particular topic when asked a question, and then whether it invokes the correct action associated with that topic. This command is the CLI-equivalent of the Conversation Preview panel in your org's Agent Builder UI.\n\nWhen the session concludes, the command asks if you want to save the API responses and chat transcripts. By default, the files are saved to the \"./temp/agent-preview\" directory. Specify a new default directory by setting the environment variable \"SF_AGENT_PREVIEW_OUTPUT_DIR\" to the directory. Or you can pass the directory to the --output-dir flag.\n\nFind the agent's API name in its main details page in your org's Agent page in Setup.\n\nBefore you use this command, you must complete these steps:\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n1. Create a connected app in your org as described in the \"Create a Connected App\" section here: https://developer.salesforce.com/docs/einstein/genai/guide/agent-api-get-started.html#create-a-connected-app. Do these four additional steps:\n\n a. When specifying the connected app's Callback URL, add this second callback URL on a new line: \"http://localhost:1717/OauthRedirect\".\n\n b. When adding the scopes to the connected app, add \"Manage user data via Web browsers (web)\".\n\n c. Ensure that the \"Require Secret for Web Server Flow\" option is not selected.\n\n d. Make note of the user that you specified as the \"Run As\" user when updating the Client Credentials Flow section.\n\n2. Add the connected app to your agent as described in the \"Add Connected App to Agent\" section here: https://developer.salesforce.com/docs/einstein/genai/guide/agent-api-get-started.html#add-connected-app-to-agent.\n\n3. Copy the consumer key from your connected app as described in the \"Obtain Credentials\" section here: https://developer.salesforce.com/docs/einstein/genai/guide/agent-api-get-started.html#obtain-credentials.\n\n4. Set the \"SFDX_AUTH_SCOPES\" environment variable to \"refresh_token sfap_api chatbot_api web api\". This step ensures that you get the specific OAuth scopes required by this command.\n\n5. Using the username of the user you specified as the \"Run As\" user above, authorize your org using the web server flow, as described in this document: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_web_flow.htm.\n\n IMPORTANT: You must use the \"--client-id <CONNECTED-APP-CONSUMER-KEY>\" flag of \"org login web\", where CONNECTED-APP-CONSUMER-KEY is the consumer key you previously copied. This step ensures that the \"org login web\" command uses your custom connected app, and not the default CLI connected app.\n\n Press Enter to skip sharing the client secret.\n\n6. When you run this command to interact with an agent, specify the username you authorized in the preceding step with the --connected-app-user (-a) flag.",
|
|
4931
4930
|
"examples": [
|
|
4932
4931
|
"Interact with an agent with API name \"Resort_Manager\" in the org with alias \"my-org\". Connect to your agent using the alias \"my-agent-user\"; this alias must point to the username who is authorized using the Web server flow:\n<%= config.bin %> <%= command.id %> --api-name \"Resort_Manager\" --target-org my-org --connected-app-user my-agent-user",
|
|
4933
4932
|
"Same as the preceding example, but this time save the conversation transcripts to the \"./transcripts/my-preview\" directory rather than the default \"./temp/agent-preview\":\n<%= config.bin %> <%= command.id %> --api-name \"Resort_Manager\" --target-org my-org --connected-app-user my-agent-user --output-dir \"transcripts/my-preview\""
|
|
@@ -5180,7 +5179,6 @@
|
|
|
5180
5179
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
5181
5180
|
"pluginName": "@salesforce/plugin-agent",
|
|
5182
5181
|
"pluginType": "jit",
|
|
5183
|
-
"state": "beta",
|
|
5184
5182
|
"strict": true,
|
|
5185
5183
|
"summary": "Generate an agent spec, which is a YAML file that captures what an agent can do.",
|
|
5186
5184
|
"enableJsonFlag": true,
|
|
@@ -5327,7 +5325,6 @@
|
|
|
5327
5325
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
5328
5326
|
"pluginName": "@salesforce/plugin-agent",
|
|
5329
5327
|
"pluginType": "jit",
|
|
5330
|
-
"state": "beta",
|
|
5331
5328
|
"strict": true,
|
|
5332
5329
|
"summary": "Generate an agent test spec, which is a YAML file that lists the test cases for testing a specific agent.",
|
|
5333
5330
|
"enableJsonFlag": false,
|
|
@@ -5441,8 +5438,8 @@
|
|
|
5441
5438
|
"description": "To run this command, you must have an agent test spec file, which is a YAML file that lists the test cases for testing a specific agent. Use the \"agent generate test-spec\" CLI command to generate a test spec file. Then specify the file to this command with the --spec flag, or run this command with no flags to be prompted.\n\nWhen this command completes, your org contains the new agent test, which you can view and edit using the Testing Center UI. This command also retrieves the metadata component (AiEvaluationDefinition) associated with the new test to your local Salesforce DX project and displays its filename.\n\nAfter you've created the test in the org, use the \"agent test run\" command to run it.",
|
|
5442
5439
|
"examples": [
|
|
5443
5440
|
"Create an agent test interactively and be prompted for the test spec and API name of the test in the org; use the default org:\n<%= config.bin %> <%= command.id %>",
|
|
5444
|
-
"Create an agent test and use flags to specify all required information; if a test with same API name already exists in the org, overwrite it without confirmation. Use the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --spec specs/Resort_Manager-testSpec.yaml --
|
|
5445
|
-
"Preview what the agent test metadata (AiEvaluationDefinition) looks like without deploying it to your default org:\n<%= config.bin %> <%= command.id %> --spec specs/Resort_Manager-testSpec.yaml --
|
|
5441
|
+
"Create an agent test and use flags to specify all required information; if a test with same API name already exists in the org, overwrite it without confirmation. Use the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --force-overwrite --target-org my-org",
|
|
5442
|
+
"Preview what the agent test metadata (AiEvaluationDefinition) looks like without deploying it to your default org:\n<%= config.bin %> <%= command.id %> --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview"
|
|
5446
5443
|
],
|
|
5447
5444
|
"flags": {
|
|
5448
5445
|
"json": {
|
|
@@ -5460,8 +5457,8 @@
|
|
|
5460
5457
|
"multiple": false,
|
|
5461
5458
|
"type": "option"
|
|
5462
5459
|
},
|
|
5463
|
-
"
|
|
5464
|
-
"name": "
|
|
5460
|
+
"api-name": {
|
|
5461
|
+
"name": "api-name",
|
|
5465
5462
|
"summary": "API name of the new test; the API name must not exist in the org.",
|
|
5466
5463
|
"hasDynamicHelp": false,
|
|
5467
5464
|
"multiple": false,
|
|
@@ -5510,7 +5507,6 @@
|
|
|
5510
5507
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
5511
5508
|
"pluginName": "@salesforce/plugin-agent",
|
|
5512
5509
|
"pluginType": "jit",
|
|
5513
|
-
"state": "beta",
|
|
5514
5510
|
"strict": true,
|
|
5515
5511
|
"summary": "Create an agent test in your org using a local test spec YAML file.",
|
|
5516
5512
|
"enableJsonFlag": true,
|
|
@@ -5580,7 +5576,6 @@
|
|
|
5580
5576
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
5581
5577
|
"pluginName": "@salesforce/plugin-agent",
|
|
5582
5578
|
"pluginType": "jit",
|
|
5583
|
-
"state": "beta",
|
|
5584
5579
|
"strict": true,
|
|
5585
5580
|
"summary": "List the available agent tests in your org.",
|
|
5586
5581
|
"enableJsonFlag": true,
|
|
@@ -5683,7 +5678,6 @@
|
|
|
5683
5678
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
5684
5679
|
"pluginName": "@salesforce/plugin-agent",
|
|
5685
5680
|
"pluginType": "jit",
|
|
5686
|
-
"state": "beta",
|
|
5687
5681
|
"strict": true,
|
|
5688
5682
|
"summary": "Get the results of a completed agent test run.",
|
|
5689
5683
|
"enableJsonFlag": true,
|
|
@@ -5801,7 +5795,6 @@
|
|
|
5801
5795
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
5802
5796
|
"pluginName": "@salesforce/plugin-agent",
|
|
5803
5797
|
"pluginType": "jit",
|
|
5804
|
-
"state": "beta",
|
|
5805
5798
|
"strict": true,
|
|
5806
5799
|
"summary": "Resume an agent test that you previously started in your org so you can view the test results.",
|
|
5807
5800
|
"enableJsonFlag": true,
|
|
@@ -5911,7 +5904,6 @@
|
|
|
5911
5904
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
5912
5905
|
"pluginName": "@salesforce/plugin-agent",
|
|
5913
5906
|
"pluginType": "jit",
|
|
5914
|
-
"state": "beta",
|
|
5915
5907
|
"strict": true,
|
|
5916
5908
|
"summary": "Start an agent test in your org.",
|
|
5917
5909
|
"enableJsonFlag": true,
|
|
@@ -5934,5 +5926,5 @@
|
|
|
5934
5926
|
]
|
|
5935
5927
|
}
|
|
5936
5928
|
},
|
|
5937
|
-
"version": "2.
|
|
5929
|
+
"version": "2.89.1"
|
|
5938
5930
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/cli",
|
|
3
3
|
"description": "The Salesforce CLI",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.89.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
7
7
|
"sf": "./bin/run.js",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@salesforce/plugin-signups": "2.6.25",
|
|
85
85
|
"@salesforce/sfdx-plugin-lwc-test": "1.2.1",
|
|
86
86
|
"@salesforce/sfdx-scanner": "4.12.0",
|
|
87
|
-
"@salesforce/plugin-agent": "1.
|
|
87
|
+
"@salesforce/plugin-agent": "1.21.0"
|
|
88
88
|
},
|
|
89
89
|
"devPlugins": [
|
|
90
90
|
"@oclif/plugin-command-snapshot",
|