@salesforce/cli 2.92.4 → 2.92.6
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 +761 -23
- package/npm-shrinkwrap.json +745 -238
- package/oclif.lock +166 -45
- package/oclif.manifest.json +1 -1111
- package/package.json +7 -5
package/oclif.manifest.json
CHANGED
|
@@ -4829,1117 +4829,7 @@
|
|
|
4829
4829
|
"dfa:scanner:run",
|
|
4830
4830
|
"dfa:run:scanner"
|
|
4831
4831
|
]
|
|
4832
|
-
},
|
|
4833
|
-
"agent:create": {
|
|
4834
|
-
"aliases": [],
|
|
4835
|
-
"args": {},
|
|
4836
|
-
"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>\".",
|
|
4837
|
-
"examples": [
|
|
4838
|
-
"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 %>",
|
|
4839
|
-
"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",
|
|
4840
|
-
"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"
|
|
4841
|
-
],
|
|
4842
|
-
"flags": {
|
|
4843
|
-
"json": {
|
|
4844
|
-
"description": "Format output as json.",
|
|
4845
|
-
"helpGroup": "GLOBAL",
|
|
4846
|
-
"name": "json",
|
|
4847
|
-
"allowNo": false,
|
|
4848
|
-
"type": "boolean"
|
|
4849
|
-
},
|
|
4850
|
-
"flags-dir": {
|
|
4851
|
-
"helpGroup": "GLOBAL",
|
|
4852
|
-
"name": "flags-dir",
|
|
4853
|
-
"summary": "Import flag values from a directory.",
|
|
4854
|
-
"hasDynamicHelp": false,
|
|
4855
|
-
"multiple": false,
|
|
4856
|
-
"type": "option"
|
|
4857
|
-
},
|
|
4858
|
-
"target-org": {
|
|
4859
|
-
"char": "o",
|
|
4860
|
-
"name": "target-org",
|
|
4861
|
-
"noCacheDefault": true,
|
|
4862
|
-
"required": true,
|
|
4863
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
4864
|
-
"hasDynamicHelp": true,
|
|
4865
|
-
"multiple": false,
|
|
4866
|
-
"type": "option"
|
|
4867
|
-
},
|
|
4868
|
-
"api-version": {
|
|
4869
|
-
"description": "Override the api version used for api requests made by this command",
|
|
4870
|
-
"name": "api-version",
|
|
4871
|
-
"hasDynamicHelp": false,
|
|
4872
|
-
"multiple": false,
|
|
4873
|
-
"type": "option"
|
|
4874
|
-
},
|
|
4875
|
-
"name": {
|
|
4876
|
-
"name": "name",
|
|
4877
|
-
"summary": "Name (label) of the new agent.",
|
|
4878
|
-
"hasDynamicHelp": false,
|
|
4879
|
-
"multiple": false,
|
|
4880
|
-
"type": "option"
|
|
4881
|
-
},
|
|
4882
|
-
"api-name": {
|
|
4883
|
-
"name": "api-name",
|
|
4884
|
-
"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.",
|
|
4885
|
-
"hasDynamicHelp": false,
|
|
4886
|
-
"multiple": false,
|
|
4887
|
-
"type": "option"
|
|
4888
|
-
},
|
|
4889
|
-
"spec": {
|
|
4890
|
-
"name": "spec",
|
|
4891
|
-
"summary": "Path to an agent spec file.",
|
|
4892
|
-
"hasDynamicHelp": false,
|
|
4893
|
-
"multiple": false,
|
|
4894
|
-
"type": "option"
|
|
4895
|
-
},
|
|
4896
|
-
"preview": {
|
|
4897
|
-
"name": "preview",
|
|
4898
|
-
"summary": "Preview the agent without saving it in your org.",
|
|
4899
|
-
"allowNo": false,
|
|
4900
|
-
"type": "boolean"
|
|
4901
|
-
},
|
|
4902
|
-
"planner-id": {
|
|
4903
|
-
"hidden": true,
|
|
4904
|
-
"name": "planner-id",
|
|
4905
|
-
"summary": "An existing GenAiPlanner ID to associate with the agent.",
|
|
4906
|
-
"hasDynamicHelp": false,
|
|
4907
|
-
"multiple": false,
|
|
4908
|
-
"type": "option"
|
|
4909
|
-
}
|
|
4910
|
-
},
|
|
4911
|
-
"hasDynamicHelp": true,
|
|
4912
|
-
"hiddenAliases": [],
|
|
4913
|
-
"id": "agent:create",
|
|
4914
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
4915
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
4916
|
-
"pluginType": "jit",
|
|
4917
|
-
"strict": true,
|
|
4918
|
-
"summary": "Create an agent in your org using a local agent spec file.",
|
|
4919
|
-
"enableJsonFlag": true,
|
|
4920
|
-
"requiresProject": true,
|
|
4921
|
-
"isESM": true,
|
|
4922
|
-
"relativePath": [
|
|
4923
|
-
"lib",
|
|
4924
|
-
"commands",
|
|
4925
|
-
"agent",
|
|
4926
|
-
"create.js"
|
|
4927
|
-
],
|
|
4928
|
-
"aliasPermutations": [],
|
|
4929
|
-
"permutations": [
|
|
4930
|
-
"agent:create",
|
|
4931
|
-
"create:agent"
|
|
4932
|
-
]
|
|
4933
|
-
},
|
|
4934
|
-
"agent:preview": {
|
|
4935
|
-
"aliases": [],
|
|
4936
|
-
"args": {},
|
|
4937
|
-
"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\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.",
|
|
4938
|
-
"examples": [
|
|
4939
|
-
"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",
|
|
4940
|
-
"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\""
|
|
4941
|
-
],
|
|
4942
|
-
"flags": {
|
|
4943
|
-
"flags-dir": {
|
|
4944
|
-
"helpGroup": "GLOBAL",
|
|
4945
|
-
"name": "flags-dir",
|
|
4946
|
-
"summary": "Import flag values from a directory.",
|
|
4947
|
-
"hasDynamicHelp": false,
|
|
4948
|
-
"multiple": false,
|
|
4949
|
-
"type": "option"
|
|
4950
|
-
},
|
|
4951
|
-
"target-org": {
|
|
4952
|
-
"char": "o",
|
|
4953
|
-
"name": "target-org",
|
|
4954
|
-
"noCacheDefault": true,
|
|
4955
|
-
"required": true,
|
|
4956
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
4957
|
-
"hasDynamicHelp": true,
|
|
4958
|
-
"multiple": false,
|
|
4959
|
-
"type": "option"
|
|
4960
|
-
},
|
|
4961
|
-
"api-version": {
|
|
4962
|
-
"description": "Override the api version used for api requests made by this command",
|
|
4963
|
-
"name": "api-version",
|
|
4964
|
-
"hasDynamicHelp": false,
|
|
4965
|
-
"multiple": false,
|
|
4966
|
-
"type": "option"
|
|
4967
|
-
},
|
|
4968
|
-
"connected-app-user": {
|
|
4969
|
-
"char": "a",
|
|
4970
|
-
"name": "connected-app-user",
|
|
4971
|
-
"noCacheDefault": true,
|
|
4972
|
-
"required": true,
|
|
4973
|
-
"summary": "Username or alias of the connected app user that's configured with web-based access tokens to the agent.",
|
|
4974
|
-
"hasDynamicHelp": true,
|
|
4975
|
-
"multiple": false,
|
|
4976
|
-
"type": "option"
|
|
4977
|
-
},
|
|
4978
|
-
"api-name": {
|
|
4979
|
-
"char": "n",
|
|
4980
|
-
"name": "api-name",
|
|
4981
|
-
"summary": "API name of the agent you want to interact with.",
|
|
4982
|
-
"hasDynamicHelp": false,
|
|
4983
|
-
"multiple": false,
|
|
4984
|
-
"type": "option"
|
|
4985
|
-
},
|
|
4986
|
-
"output-dir": {
|
|
4987
|
-
"char": "d",
|
|
4988
|
-
"name": "output-dir",
|
|
4989
|
-
"summary": "Directory where conversation transcripts are saved.",
|
|
4990
|
-
"hasDynamicHelp": false,
|
|
4991
|
-
"multiple": false,
|
|
4992
|
-
"type": "option"
|
|
4993
|
-
},
|
|
4994
|
-
"apex-debug": {
|
|
4995
|
-
"char": "x",
|
|
4996
|
-
"name": "apex-debug",
|
|
4997
|
-
"summary": "Enable Apex debug logging during the agent preview conversation.",
|
|
4998
|
-
"allowNo": false,
|
|
4999
|
-
"type": "boolean"
|
|
5000
|
-
}
|
|
5001
|
-
},
|
|
5002
|
-
"hasDynamicHelp": true,
|
|
5003
|
-
"hiddenAliases": [],
|
|
5004
|
-
"id": "agent:preview",
|
|
5005
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
5006
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
5007
|
-
"pluginType": "jit",
|
|
5008
|
-
"state": "beta",
|
|
5009
|
-
"strict": true,
|
|
5010
|
-
"summary": "Interact with an active agent to preview how the agent responds to your statements, questions, and commands (utterances).",
|
|
5011
|
-
"enableJsonFlag": false,
|
|
5012
|
-
"requiresProject": true,
|
|
5013
|
-
"isESM": true,
|
|
5014
|
-
"relativePath": [
|
|
5015
|
-
"lib",
|
|
5016
|
-
"commands",
|
|
5017
|
-
"agent",
|
|
5018
|
-
"preview.js"
|
|
5019
|
-
],
|
|
5020
|
-
"aliasPermutations": [],
|
|
5021
|
-
"permutations": [
|
|
5022
|
-
"agent:preview",
|
|
5023
|
-
"preview:agent"
|
|
5024
|
-
]
|
|
5025
|
-
},
|
|
5026
|
-
"agent:generate:agent-spec": {
|
|
5027
|
-
"aliases": [],
|
|
5028
|
-
"args": {},
|
|
5029
|
-
"description": "The first step in creating an agent in your org with Salesforce CLI is to generate an agent spec using this command. An agent spec is a YAML-formatted file that contains information about the agent, such as its role and company description, and then an AI-generated list of topics based on this information. Topics define the range of jobs your agent can handle.\n\nUse flags, such as --role and --company-description, to provide details about your company and the role that the agent plays in your company. If you prefer, you can also be prompted for the basic information; use --full-interview to be prompted for all required and optional properties. Upon command execution, the large language model (LLM) associated with your org uses the provided information to generate a list of topics for the agent. Because the LLM uses the company and role information to generate the topics, we recommend that you provide accurate, complete, and specific details so the LLM generates the best and most relevant topics. Once generated, you can edit the spec file; for example, you can remove topics that don't apply or change a topic's description.\n\nYou can also iterate the spec generation process by using the --spec flag to pass an existing agent spec file to this command, and then using the --role, --company-description, etc, flags to refine your agent properties. Iteratively improving the description of your agent allows the LLM to generate progressively better topics.\n\nYou can also specify other agent properties, such as a custom prompt template, how to ground the prompt template to add context to the agent's prompts, the tone of the prompts, and the username of a user in the org to assign to the agent.\n\nWhen your agent spec is ready, you then create the agent in your org by running the \"agent create\" CLI command and specifying the spec with the --spec flag.",
|
|
5030
|
-
"examples": [
|
|
5031
|
-
"Generate an agent spec in the default location and use flags to specify the agent properties, such as its role and your company details; use your default org:\n<%= config.bin %> <%= command.id %> --type customer --role \"Field customer complaints and manage employee schedules.\" --company-name \"Coral Cloud Resorts\" --company-description \"Provide customers with exceptional destination activities, unforgettable experiences, and reservation services.\"",
|
|
5032
|
-
"Generate an agent spec by being prompted for the required agent properties and generate a maxiumum of 5 topics; write the generated file to the \"specs/resortManagerSpec.yaml\" file and use the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --max-topics 5 --output-file specs/resortManagerAgent.yaml --target-org my-org",
|
|
5033
|
-
"Be prompted for all required and optional agent properties; use your default org:\n<%= config.bin %> <%= command.id %> --full-interview",
|
|
5034
|
-
"Specify an existing agent spec file called \"specs/resortManagerAgent.yaml\", and then overwrite it with a new version that contains newly AI-generated topics based on the updated role information passed in with the --role flag:\n<%= config.bin %> <%= command.id %> --spec specs/resortManagerAgent.yaml --output-file specs/resortManagerAgent.yaml --role \"Field customer complaints, manage employee schedules, and ensure all resort operations are running smoothly\"",
|
|
5035
|
-
"Specify that the conversational tone of the agent is formal and to attach the \"resortmanager@myorg.com\" username to it; be prompted for the required properties and use your default org:\n<%= config.bin %> <%= command.id %> --tone formal --agent-user resortmanager@myorg.com"
|
|
5036
|
-
],
|
|
5037
|
-
"flags": {
|
|
5038
|
-
"json": {
|
|
5039
|
-
"description": "Format output as json.",
|
|
5040
|
-
"helpGroup": "GLOBAL",
|
|
5041
|
-
"name": "json",
|
|
5042
|
-
"allowNo": false,
|
|
5043
|
-
"type": "boolean"
|
|
5044
|
-
},
|
|
5045
|
-
"flags-dir": {
|
|
5046
|
-
"helpGroup": "GLOBAL",
|
|
5047
|
-
"name": "flags-dir",
|
|
5048
|
-
"summary": "Import flag values from a directory.",
|
|
5049
|
-
"hasDynamicHelp": false,
|
|
5050
|
-
"multiple": false,
|
|
5051
|
-
"type": "option"
|
|
5052
|
-
},
|
|
5053
|
-
"target-org": {
|
|
5054
|
-
"char": "o",
|
|
5055
|
-
"name": "target-org",
|
|
5056
|
-
"noCacheDefault": true,
|
|
5057
|
-
"required": true,
|
|
5058
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5059
|
-
"hasDynamicHelp": true,
|
|
5060
|
-
"multiple": false,
|
|
5061
|
-
"type": "option"
|
|
5062
|
-
},
|
|
5063
|
-
"api-version": {
|
|
5064
|
-
"description": "Override the api version used for api requests made by this command",
|
|
5065
|
-
"name": "api-version",
|
|
5066
|
-
"hasDynamicHelp": false,
|
|
5067
|
-
"multiple": false,
|
|
5068
|
-
"type": "option"
|
|
5069
|
-
},
|
|
5070
|
-
"type": {
|
|
5071
|
-
"name": "type",
|
|
5072
|
-
"summary": "Type of agent to create. Internal types are copilots used internally by your company and customer types are the agents you create for your customers.",
|
|
5073
|
-
"hasDynamicHelp": false,
|
|
5074
|
-
"multiple": false,
|
|
5075
|
-
"options": [
|
|
5076
|
-
"customer",
|
|
5077
|
-
"internal"
|
|
5078
|
-
],
|
|
5079
|
-
"type": "option"
|
|
5080
|
-
},
|
|
5081
|
-
"role": {
|
|
5082
|
-
"name": "role",
|
|
5083
|
-
"summary": "Role of the agent.",
|
|
5084
|
-
"hasDynamicHelp": false,
|
|
5085
|
-
"multiple": false,
|
|
5086
|
-
"type": "option"
|
|
5087
|
-
},
|
|
5088
|
-
"company-name": {
|
|
5089
|
-
"name": "company-name",
|
|
5090
|
-
"summary": "Name of your company.",
|
|
5091
|
-
"hasDynamicHelp": false,
|
|
5092
|
-
"multiple": false,
|
|
5093
|
-
"type": "option"
|
|
5094
|
-
},
|
|
5095
|
-
"company-description": {
|
|
5096
|
-
"name": "company-description",
|
|
5097
|
-
"summary": "Description of your company.",
|
|
5098
|
-
"hasDynamicHelp": false,
|
|
5099
|
-
"multiple": false,
|
|
5100
|
-
"type": "option"
|
|
5101
|
-
},
|
|
5102
|
-
"company-website": {
|
|
5103
|
-
"name": "company-website",
|
|
5104
|
-
"summary": "Website URL of your company.",
|
|
5105
|
-
"hasDynamicHelp": false,
|
|
5106
|
-
"multiple": false,
|
|
5107
|
-
"type": "option"
|
|
5108
|
-
},
|
|
5109
|
-
"max-topics": {
|
|
5110
|
-
"name": "max-topics",
|
|
5111
|
-
"summary": "Maximum number of topics to generate in the agent spec; default is 5.",
|
|
5112
|
-
"hasDynamicHelp": false,
|
|
5113
|
-
"multiple": false,
|
|
5114
|
-
"type": "option"
|
|
5115
|
-
},
|
|
5116
|
-
"agent-user": {
|
|
5117
|
-
"name": "agent-user",
|
|
5118
|
-
"summary": "Username of a user in your org to assign to your agent; determines what your agent can access and do.",
|
|
5119
|
-
"hasDynamicHelp": false,
|
|
5120
|
-
"multiple": false,
|
|
5121
|
-
"type": "option"
|
|
5122
|
-
},
|
|
5123
|
-
"enrich-logs": {
|
|
5124
|
-
"name": "enrich-logs",
|
|
5125
|
-
"summary": "Adds agent conversation data to event logs so you can view all agent session activity in one place.",
|
|
5126
|
-
"hasDynamicHelp": false,
|
|
5127
|
-
"multiple": false,
|
|
5128
|
-
"options": [
|
|
5129
|
-
"true",
|
|
5130
|
-
"false"
|
|
5131
|
-
],
|
|
5132
|
-
"type": "option"
|
|
5133
|
-
},
|
|
5134
|
-
"tone": {
|
|
5135
|
-
"name": "tone",
|
|
5136
|
-
"summary": "Conversational style of the agent, such as how it expresses your brand personality in its messages through word choice, punctuation, and sentence structure.",
|
|
5137
|
-
"hasDynamicHelp": false,
|
|
5138
|
-
"multiple": false,
|
|
5139
|
-
"options": [
|
|
5140
|
-
"formal",
|
|
5141
|
-
"casual",
|
|
5142
|
-
"neutral"
|
|
5143
|
-
],
|
|
5144
|
-
"type": "option"
|
|
5145
|
-
},
|
|
5146
|
-
"spec": {
|
|
5147
|
-
"name": "spec",
|
|
5148
|
-
"summary": "Agent spec file, in YAML format, to use as input to the command.",
|
|
5149
|
-
"hasDynamicHelp": false,
|
|
5150
|
-
"multiple": false,
|
|
5151
|
-
"type": "option"
|
|
5152
|
-
},
|
|
5153
|
-
"output-file": {
|
|
5154
|
-
"name": "output-file",
|
|
5155
|
-
"summary": "Path for the generated YAML agent spec file; can be an absolute or relative path.",
|
|
5156
|
-
"default": "specs/agentSpec.yaml",
|
|
5157
|
-
"hasDynamicHelp": false,
|
|
5158
|
-
"multiple": false,
|
|
5159
|
-
"type": "option"
|
|
5160
|
-
},
|
|
5161
|
-
"full-interview": {
|
|
5162
|
-
"name": "full-interview",
|
|
5163
|
-
"summary": "Prompt for both required and optional flags.",
|
|
5164
|
-
"allowNo": false,
|
|
5165
|
-
"type": "boolean"
|
|
5166
|
-
},
|
|
5167
|
-
"prompt-template": {
|
|
5168
|
-
"name": "prompt-template",
|
|
5169
|
-
"summary": "API name of a customized prompt template to use instead of the default prompt template.",
|
|
5170
|
-
"hasDynamicHelp": false,
|
|
5171
|
-
"multiple": false,
|
|
5172
|
-
"type": "option"
|
|
5173
|
-
},
|
|
5174
|
-
"grounding-context": {
|
|
5175
|
-
"dependsOn": [
|
|
5176
|
-
"prompt-template"
|
|
5177
|
-
],
|
|
5178
|
-
"name": "grounding-context",
|
|
5179
|
-
"summary": "Context information and personalization that's added to your prompts when using a custom prompt template.",
|
|
5180
|
-
"hasDynamicHelp": false,
|
|
5181
|
-
"multiple": false,
|
|
5182
|
-
"type": "option"
|
|
5183
|
-
},
|
|
5184
|
-
"force-overwrite": {
|
|
5185
|
-
"name": "force-overwrite",
|
|
5186
|
-
"summary": "Don't prompt the user to confirm that an existing spec file will be overwritten.",
|
|
5187
|
-
"allowNo": false,
|
|
5188
|
-
"type": "boolean"
|
|
5189
|
-
}
|
|
5190
|
-
},
|
|
5191
|
-
"hasDynamicHelp": true,
|
|
5192
|
-
"hiddenAliases": [],
|
|
5193
|
-
"id": "agent:generate:agent-spec",
|
|
5194
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
5195
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
5196
|
-
"pluginType": "jit",
|
|
5197
|
-
"strict": true,
|
|
5198
|
-
"summary": "Generate an agent spec, which is a YAML file that captures what an agent can do.",
|
|
5199
|
-
"enableJsonFlag": true,
|
|
5200
|
-
"requiresProject": true,
|
|
5201
|
-
"isESM": true,
|
|
5202
|
-
"relativePath": [
|
|
5203
|
-
"lib",
|
|
5204
|
-
"commands",
|
|
5205
|
-
"agent",
|
|
5206
|
-
"generate",
|
|
5207
|
-
"agent-spec.js"
|
|
5208
|
-
],
|
|
5209
|
-
"aliasPermutations": [],
|
|
5210
|
-
"permutations": [
|
|
5211
|
-
"agent:generate:agent-spec",
|
|
5212
|
-
"generate:agent:agent-spec",
|
|
5213
|
-
"generate:agent-spec:agent",
|
|
5214
|
-
"agent:agent-spec:generate",
|
|
5215
|
-
"agent-spec:agent:generate",
|
|
5216
|
-
"agent-spec:generate:agent"
|
|
5217
|
-
]
|
|
5218
|
-
},
|
|
5219
|
-
"agent:generate:template": {
|
|
5220
|
-
"aliases": [],
|
|
5221
|
-
"args": {},
|
|
5222
|
-
"description": "At a high-level, agents are defined by the Bot, BotVersion, and GenAiPlanner metadata types. The GenAiPlanner type in turn defines the agent's topics and actions. This command uses the metadata files for these three types, located in your local DX project, to generate a BotTemplate file for a specific agent (Bot). You then use the BotTemplate file, along with the GenAiPlanner file that references the BotTemplate, to package the template in a managed package that you can share between orgs or on AppExchange.\n\nUse the --agent-file flag to specify the relative or full pathname of the Bot metadata file, such as force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml. A single Bot can have multiple BotVersions, so use the --agent-version flag to specify the version. The corresponding BotVersion file must exist locally. For example, if you specify \"--agent-version 4\", then the file force-app/main/default/bots/My_Awesome_Agent/v4.botVersion-meta.xml must exist.\n\nThe new BotTemplate file is generated in the \"botTemplates\" directory in your local package directory, and has the name <Agent_API_name>\\_v<Version>\\_Template.botTemplate-meta.xml, such as force-app/main/default/botTemplates/My_Awesome_Agent_v4_Template.botTemplate-meta.xml. The command displays the full pathname of the generated files when it completes.",
|
|
5223
|
-
"examples": [
|
|
5224
|
-
"Generate an agent template from a Bot metadata file in your DX project that corresponds to the My_Awesome_Agent agent; use version 1 of the agent.\n<%= config.bin %> <%= command.id %> --agent-file force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1"
|
|
5225
|
-
],
|
|
5226
|
-
"flags": {
|
|
5227
|
-
"json": {
|
|
5228
|
-
"description": "Format output as json.",
|
|
5229
|
-
"helpGroup": "GLOBAL",
|
|
5230
|
-
"name": "json",
|
|
5231
|
-
"allowNo": false,
|
|
5232
|
-
"type": "boolean"
|
|
5233
|
-
},
|
|
5234
|
-
"flags-dir": {
|
|
5235
|
-
"helpGroup": "GLOBAL",
|
|
5236
|
-
"name": "flags-dir",
|
|
5237
|
-
"summary": "Import flag values from a directory.",
|
|
5238
|
-
"hasDynamicHelp": false,
|
|
5239
|
-
"multiple": false,
|
|
5240
|
-
"type": "option"
|
|
5241
|
-
},
|
|
5242
|
-
"api-version": {
|
|
5243
|
-
"description": "Override the api version used for api requests made by this command",
|
|
5244
|
-
"name": "api-version",
|
|
5245
|
-
"hasDynamicHelp": false,
|
|
5246
|
-
"multiple": false,
|
|
5247
|
-
"type": "option"
|
|
5248
|
-
},
|
|
5249
|
-
"agent-version": {
|
|
5250
|
-
"name": "agent-version",
|
|
5251
|
-
"required": true,
|
|
5252
|
-
"summary": "Version of the agent (BotVersion).",
|
|
5253
|
-
"hasDynamicHelp": false,
|
|
5254
|
-
"multiple": false,
|
|
5255
|
-
"type": "option"
|
|
5256
|
-
},
|
|
5257
|
-
"agent-file": {
|
|
5258
|
-
"char": "f",
|
|
5259
|
-
"name": "agent-file",
|
|
5260
|
-
"required": true,
|
|
5261
|
-
"summary": "Path to an agent (Bot) metadata file.",
|
|
5262
|
-
"hasDynamicHelp": false,
|
|
5263
|
-
"multiple": false,
|
|
5264
|
-
"type": "option"
|
|
5265
|
-
}
|
|
5266
|
-
},
|
|
5267
|
-
"hasDynamicHelp": false,
|
|
5268
|
-
"hiddenAliases": [],
|
|
5269
|
-
"id": "agent:generate:template",
|
|
5270
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
5271
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
5272
|
-
"pluginType": "jit",
|
|
5273
|
-
"state": "beta",
|
|
5274
|
-
"strict": true,
|
|
5275
|
-
"summary": "Generate an agent template from an existing agent in your DX project so you can then package the template in a managed package.",
|
|
5276
|
-
"enableJsonFlag": true,
|
|
5277
|
-
"requiresProject": true,
|
|
5278
|
-
"isESM": true,
|
|
5279
|
-
"relativePath": [
|
|
5280
|
-
"lib",
|
|
5281
|
-
"commands",
|
|
5282
|
-
"agent",
|
|
5283
|
-
"generate",
|
|
5284
|
-
"template.js"
|
|
5285
|
-
],
|
|
5286
|
-
"aliasPermutations": [],
|
|
5287
|
-
"permutations": [
|
|
5288
|
-
"agent:generate:template",
|
|
5289
|
-
"generate:agent:template",
|
|
5290
|
-
"generate:template:agent",
|
|
5291
|
-
"agent:template:generate",
|
|
5292
|
-
"template:agent:generate",
|
|
5293
|
-
"template:generate:agent"
|
|
5294
|
-
]
|
|
5295
|
-
},
|
|
5296
|
-
"agent:generate:test-spec": {
|
|
5297
|
-
"aliases": [],
|
|
5298
|
-
"args": {},
|
|
5299
|
-
"description": "The first step when using Salesforce CLI to create an agent test in your org is to use this interactive command to generate a local YAML-formatted test spec file. The test spec YAML file contains information about the agent being tested, such as its API name, and then one or more test cases. This command uses the metadata components in your DX project when prompting for information, such as the agent API name; it doesn't look in your org.\n\nTo generate a specific agent test case, this command prompts you for this information; when possible, the command provides a list of options for you to choose from:\n\n- Utterance: Natural language statement, question, or command used to test the agent.\n- Expected topic: API name of the topic you expect the agent to use when responding to the utterance.\n- Expected actions: One or more API names of the expection actions the agent takes.\n- Expected outcome: Natural language description of the outcome you expect.\n\nWhen your test spec is ready, you then run the \"agent test create\" command to actually create the test in your org and synchronize the metadata with your DX project. The metadata type for an agent test is AiEvaluationDefinition.\n\nIf you have an existing AiEvaluationDefinition metadata XML file in your DX project, you can generate its equivalent YAML test spec file with the --from-definition flag.",
|
|
5300
|
-
"examples": [
|
|
5301
|
-
"Generate an agent test spec YAML file interactively:\n<%= config.bin %> <%= command.id %>",
|
|
5302
|
-
"Generate an agent test spec YAML file and specify a name for the new file; if the file exists, overwrite it without confirmation:\n<%= config.bin %> <%= command.id %> --output-file specs/Resort_Manager-new-version-testSpec.yaml --force-overwrite",
|
|
5303
|
-
"Generate an agent test spec YAML file from an existing AiEvaluationDefinition metadata XML file in your DX project:\n<%= config.bin %> <%= command.id %> --from-definition force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml"
|
|
5304
|
-
],
|
|
5305
|
-
"flags": {
|
|
5306
|
-
"flags-dir": {
|
|
5307
|
-
"helpGroup": "GLOBAL",
|
|
5308
|
-
"name": "flags-dir",
|
|
5309
|
-
"summary": "Import flag values from a directory.",
|
|
5310
|
-
"hasDynamicHelp": false,
|
|
5311
|
-
"multiple": false,
|
|
5312
|
-
"type": "option"
|
|
5313
|
-
},
|
|
5314
|
-
"from-definition": {
|
|
5315
|
-
"char": "d",
|
|
5316
|
-
"name": "from-definition",
|
|
5317
|
-
"summary": "Filepath to the AIEvaluationDefinition metadata XML file in your DX project that you want to convert to a test spec YAML file.",
|
|
5318
|
-
"hasDynamicHelp": false,
|
|
5319
|
-
"multiple": false,
|
|
5320
|
-
"type": "option"
|
|
5321
|
-
},
|
|
5322
|
-
"force-overwrite": {
|
|
5323
|
-
"name": "force-overwrite",
|
|
5324
|
-
"summary": "Don't prompt for confirmation when overwriting an existing test spec YAML file.",
|
|
5325
|
-
"allowNo": false,
|
|
5326
|
-
"type": "boolean"
|
|
5327
|
-
},
|
|
5328
|
-
"output-file": {
|
|
5329
|
-
"char": "f",
|
|
5330
|
-
"name": "output-file",
|
|
5331
|
-
"summary": "Name of the generated test spec YAML file. Default value is \"specs/<AGENT_API_NAME>-testSpec.yaml\".",
|
|
5332
|
-
"hasDynamicHelp": false,
|
|
5333
|
-
"multiple": false,
|
|
5334
|
-
"type": "option"
|
|
5335
|
-
}
|
|
5336
|
-
},
|
|
5337
|
-
"hasDynamicHelp": false,
|
|
5338
|
-
"hiddenAliases": [],
|
|
5339
|
-
"id": "agent:generate:test-spec",
|
|
5340
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
5341
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
5342
|
-
"pluginType": "jit",
|
|
5343
|
-
"strict": true,
|
|
5344
|
-
"summary": "Generate an agent test spec, which is a YAML file that lists the test cases for testing a specific agent.",
|
|
5345
|
-
"enableJsonFlag": false,
|
|
5346
|
-
"isESM": true,
|
|
5347
|
-
"relativePath": [
|
|
5348
|
-
"lib",
|
|
5349
|
-
"commands",
|
|
5350
|
-
"agent",
|
|
5351
|
-
"generate",
|
|
5352
|
-
"test-spec.js"
|
|
5353
|
-
],
|
|
5354
|
-
"aliasPermutations": [],
|
|
5355
|
-
"permutations": [
|
|
5356
|
-
"agent:generate:test-spec",
|
|
5357
|
-
"generate:agent:test-spec",
|
|
5358
|
-
"generate:test-spec:agent",
|
|
5359
|
-
"agent:test-spec:generate",
|
|
5360
|
-
"test-spec:agent:generate",
|
|
5361
|
-
"test-spec:generate:agent"
|
|
5362
|
-
]
|
|
5363
|
-
},
|
|
5364
|
-
"agent:test:cancel": {
|
|
5365
|
-
"aliases": [],
|
|
5366
|
-
"args": {},
|
|
5367
|
-
"description": "This command requires a job ID, which the original \"agent test run\" command displays when it completes. You can also use the --use-most-recent flag to see results for the most recently run agent test.",
|
|
5368
|
-
"examples": [
|
|
5369
|
-
"Cancel an agent test currently running in your default org using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ",
|
|
5370
|
-
"Cancel the most recently run agent test in the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ --target-org my-org"
|
|
5371
|
-
],
|
|
5372
|
-
"flags": {
|
|
5373
|
-
"json": {
|
|
5374
|
-
"description": "Format output as json.",
|
|
5375
|
-
"helpGroup": "GLOBAL",
|
|
5376
|
-
"name": "json",
|
|
5377
|
-
"allowNo": false,
|
|
5378
|
-
"type": "boolean"
|
|
5379
|
-
},
|
|
5380
|
-
"flags-dir": {
|
|
5381
|
-
"helpGroup": "GLOBAL",
|
|
5382
|
-
"name": "flags-dir",
|
|
5383
|
-
"summary": "Import flag values from a directory.",
|
|
5384
|
-
"hasDynamicHelp": false,
|
|
5385
|
-
"multiple": false,
|
|
5386
|
-
"type": "option"
|
|
5387
|
-
},
|
|
5388
|
-
"target-org": {
|
|
5389
|
-
"char": "o",
|
|
5390
|
-
"name": "target-org",
|
|
5391
|
-
"noCacheDefault": true,
|
|
5392
|
-
"required": true,
|
|
5393
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5394
|
-
"hasDynamicHelp": true,
|
|
5395
|
-
"multiple": false,
|
|
5396
|
-
"type": "option"
|
|
5397
|
-
},
|
|
5398
|
-
"api-version": {
|
|
5399
|
-
"description": "Override the api version used for api requests made by this command",
|
|
5400
|
-
"name": "api-version",
|
|
5401
|
-
"hasDynamicHelp": false,
|
|
5402
|
-
"multiple": false,
|
|
5403
|
-
"type": "option"
|
|
5404
|
-
},
|
|
5405
|
-
"job-id": {
|
|
5406
|
-
"char": "i",
|
|
5407
|
-
"name": "job-id",
|
|
5408
|
-
"summary": "Job ID of the running agent test that you want to cancel.",
|
|
5409
|
-
"hasDynamicHelp": false,
|
|
5410
|
-
"multiple": false,
|
|
5411
|
-
"type": "option"
|
|
5412
|
-
},
|
|
5413
|
-
"use-most-recent": {
|
|
5414
|
-
"char": "r",
|
|
5415
|
-
"name": "use-most-recent",
|
|
5416
|
-
"summary": "Use the job ID of the most recently-run agent test.",
|
|
5417
|
-
"allowNo": false,
|
|
5418
|
-
"type": "boolean"
|
|
5419
|
-
}
|
|
5420
|
-
},
|
|
5421
|
-
"hasDynamicHelp": true,
|
|
5422
|
-
"hidden": true,
|
|
5423
|
-
"hiddenAliases": [],
|
|
5424
|
-
"id": "agent:test:cancel",
|
|
5425
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
5426
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
5427
|
-
"pluginType": "jit",
|
|
5428
|
-
"state": "beta",
|
|
5429
|
-
"strict": true,
|
|
5430
|
-
"summary": "Cancel an agent test that's currently running in your org.",
|
|
5431
|
-
"enableJsonFlag": true,
|
|
5432
|
-
"isESM": true,
|
|
5433
|
-
"relativePath": [
|
|
5434
|
-
"lib",
|
|
5435
|
-
"commands",
|
|
5436
|
-
"agent",
|
|
5437
|
-
"test",
|
|
5438
|
-
"cancel.js"
|
|
5439
|
-
],
|
|
5440
|
-
"aliasPermutations": [],
|
|
5441
|
-
"permutations": [
|
|
5442
|
-
"agent:test:cancel",
|
|
5443
|
-
"test:agent:cancel",
|
|
5444
|
-
"test:cancel:agent",
|
|
5445
|
-
"agent:cancel:test",
|
|
5446
|
-
"cancel:agent:test",
|
|
5447
|
-
"cancel:test:agent"
|
|
5448
|
-
]
|
|
5449
|
-
},
|
|
5450
|
-
"agent:test:create": {
|
|
5451
|
-
"aliases": [],
|
|
5452
|
-
"args": {},
|
|
5453
|
-
"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.",
|
|
5454
|
-
"examples": [
|
|
5455
|
-
"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 %>",
|
|
5456
|
-
"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",
|
|
5457
|
-
"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"
|
|
5458
|
-
],
|
|
5459
|
-
"flags": {
|
|
5460
|
-
"json": {
|
|
5461
|
-
"description": "Format output as json.",
|
|
5462
|
-
"helpGroup": "GLOBAL",
|
|
5463
|
-
"name": "json",
|
|
5464
|
-
"allowNo": false,
|
|
5465
|
-
"type": "boolean"
|
|
5466
|
-
},
|
|
5467
|
-
"flags-dir": {
|
|
5468
|
-
"helpGroup": "GLOBAL",
|
|
5469
|
-
"name": "flags-dir",
|
|
5470
|
-
"summary": "Import flag values from a directory.",
|
|
5471
|
-
"hasDynamicHelp": false,
|
|
5472
|
-
"multiple": false,
|
|
5473
|
-
"type": "option"
|
|
5474
|
-
},
|
|
5475
|
-
"api-name": {
|
|
5476
|
-
"name": "api-name",
|
|
5477
|
-
"summary": "API name of the new test; the API name must not exist in the org.",
|
|
5478
|
-
"hasDynamicHelp": false,
|
|
5479
|
-
"multiple": false,
|
|
5480
|
-
"type": "option"
|
|
5481
|
-
},
|
|
5482
|
-
"spec": {
|
|
5483
|
-
"name": "spec",
|
|
5484
|
-
"summary": "Path to the test spec YAML file.",
|
|
5485
|
-
"hasDynamicHelp": false,
|
|
5486
|
-
"multiple": false,
|
|
5487
|
-
"type": "option"
|
|
5488
|
-
},
|
|
5489
|
-
"target-org": {
|
|
5490
|
-
"char": "o",
|
|
5491
|
-
"name": "target-org",
|
|
5492
|
-
"noCacheDefault": true,
|
|
5493
|
-
"required": true,
|
|
5494
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5495
|
-
"hasDynamicHelp": true,
|
|
5496
|
-
"multiple": false,
|
|
5497
|
-
"type": "option"
|
|
5498
|
-
},
|
|
5499
|
-
"api-version": {
|
|
5500
|
-
"description": "Override the api version used for api requests made by this command",
|
|
5501
|
-
"name": "api-version",
|
|
5502
|
-
"hasDynamicHelp": false,
|
|
5503
|
-
"multiple": false,
|
|
5504
|
-
"type": "option"
|
|
5505
|
-
},
|
|
5506
|
-
"preview": {
|
|
5507
|
-
"name": "preview",
|
|
5508
|
-
"summary": "Preview the test metadata file (AiEvaluationDefinition) without deploying to your org.",
|
|
5509
|
-
"allowNo": false,
|
|
5510
|
-
"type": "boolean"
|
|
5511
|
-
},
|
|
5512
|
-
"force-overwrite": {
|
|
5513
|
-
"name": "force-overwrite",
|
|
5514
|
-
"summary": "Don't prompt for confirmation when overwriting an existing test (based on API name) in your org.",
|
|
5515
|
-
"allowNo": false,
|
|
5516
|
-
"type": "boolean"
|
|
5517
|
-
}
|
|
5518
|
-
},
|
|
5519
|
-
"hasDynamicHelp": true,
|
|
5520
|
-
"hiddenAliases": [],
|
|
5521
|
-
"id": "agent:test:create",
|
|
5522
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
5523
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
5524
|
-
"pluginType": "jit",
|
|
5525
|
-
"strict": true,
|
|
5526
|
-
"summary": "Create an agent test in your org using a local test spec YAML file.",
|
|
5527
|
-
"enableJsonFlag": true,
|
|
5528
|
-
"isESM": true,
|
|
5529
|
-
"relativePath": [
|
|
5530
|
-
"lib",
|
|
5531
|
-
"commands",
|
|
5532
|
-
"agent",
|
|
5533
|
-
"test",
|
|
5534
|
-
"create.js"
|
|
5535
|
-
],
|
|
5536
|
-
"aliasPermutations": [],
|
|
5537
|
-
"permutations": [
|
|
5538
|
-
"agent:test:create",
|
|
5539
|
-
"test:agent:create",
|
|
5540
|
-
"test:create:agent",
|
|
5541
|
-
"agent:create:test",
|
|
5542
|
-
"create:agent:test",
|
|
5543
|
-
"create:test:agent"
|
|
5544
|
-
]
|
|
5545
|
-
},
|
|
5546
|
-
"agent:test:list": {
|
|
5547
|
-
"aliases": [],
|
|
5548
|
-
"args": {},
|
|
5549
|
-
"description": "The command outputs a table with the name (API name) of each test along with its unique ID and the date it was created in the org.",
|
|
5550
|
-
"examples": [
|
|
5551
|
-
"List the agent tests in your default org:\n<%= config.bin %> <%= command.id %>",
|
|
5552
|
-
"List the agent tests in an org with alias \"my-org\"\"\n<%= config.bin %> <%= command.id %> --target-org my-org"
|
|
5553
|
-
],
|
|
5554
|
-
"flags": {
|
|
5555
|
-
"json": {
|
|
5556
|
-
"description": "Format output as json.",
|
|
5557
|
-
"helpGroup": "GLOBAL",
|
|
5558
|
-
"name": "json",
|
|
5559
|
-
"allowNo": false,
|
|
5560
|
-
"type": "boolean"
|
|
5561
|
-
},
|
|
5562
|
-
"flags-dir": {
|
|
5563
|
-
"helpGroup": "GLOBAL",
|
|
5564
|
-
"name": "flags-dir",
|
|
5565
|
-
"summary": "Import flag values from a directory.",
|
|
5566
|
-
"hasDynamicHelp": false,
|
|
5567
|
-
"multiple": false,
|
|
5568
|
-
"type": "option"
|
|
5569
|
-
},
|
|
5570
|
-
"target-org": {
|
|
5571
|
-
"char": "o",
|
|
5572
|
-
"name": "target-org",
|
|
5573
|
-
"noCacheDefault": true,
|
|
5574
|
-
"required": true,
|
|
5575
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5576
|
-
"hasDynamicHelp": true,
|
|
5577
|
-
"multiple": false,
|
|
5578
|
-
"type": "option"
|
|
5579
|
-
},
|
|
5580
|
-
"api-version": {
|
|
5581
|
-
"description": "Override the api version used for api requests made by this command",
|
|
5582
|
-
"name": "api-version",
|
|
5583
|
-
"hasDynamicHelp": false,
|
|
5584
|
-
"multiple": false,
|
|
5585
|
-
"type": "option"
|
|
5586
|
-
}
|
|
5587
|
-
},
|
|
5588
|
-
"hasDynamicHelp": true,
|
|
5589
|
-
"hiddenAliases": [],
|
|
5590
|
-
"id": "agent:test:list",
|
|
5591
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
5592
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
5593
|
-
"pluginType": "jit",
|
|
5594
|
-
"strict": true,
|
|
5595
|
-
"summary": "List the available agent tests in your org.",
|
|
5596
|
-
"enableJsonFlag": true,
|
|
5597
|
-
"isESM": true,
|
|
5598
|
-
"relativePath": [
|
|
5599
|
-
"lib",
|
|
5600
|
-
"commands",
|
|
5601
|
-
"agent",
|
|
5602
|
-
"test",
|
|
5603
|
-
"list.js"
|
|
5604
|
-
],
|
|
5605
|
-
"aliasPermutations": [],
|
|
5606
|
-
"permutations": [
|
|
5607
|
-
"agent:test:list",
|
|
5608
|
-
"test:agent:list",
|
|
5609
|
-
"test:list:agent",
|
|
5610
|
-
"agent:list:test",
|
|
5611
|
-
"list:agent:test",
|
|
5612
|
-
"list:test:agent"
|
|
5613
|
-
]
|
|
5614
|
-
},
|
|
5615
|
-
"agent:test:results": {
|
|
5616
|
-
"aliases": [],
|
|
5617
|
-
"args": {},
|
|
5618
|
-
"description": "This command requires a job ID, which the original \"agent test run\" command displays when it completes. You can also use the --use-most-recent flag to see results for the most recently run agent test.\n\nBy default, this command outputs test results in human-readable tables for each test case. The tables show whether the test case passed, the expected and actual values, the test score, how long the test took, and more. Use the --result-format to display the test results in JSON or Junit format. Use the --output-dir flag to write the results to a file rather than to the terminal.",
|
|
5619
|
-
"examples": [
|
|
5620
|
-
"Get the results of an agent test run in your default org using its job ID:\n<%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ",
|
|
5621
|
-
"Get the results of the most recently run agent test in an org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-org",
|
|
5622
|
-
"Get the results of the most recently run agent test in your default org, and write the JSON-formatted results into a directory called \"test-results\":\n<%= config.bin %> <%= command.id %> --use-most-recent --output-dir ./test-results --result-format json"
|
|
5623
|
-
],
|
|
5624
|
-
"flags": {
|
|
5625
|
-
"json": {
|
|
5626
|
-
"description": "Format output as json.",
|
|
5627
|
-
"helpGroup": "GLOBAL",
|
|
5628
|
-
"name": "json",
|
|
5629
|
-
"allowNo": false,
|
|
5630
|
-
"type": "boolean"
|
|
5631
|
-
},
|
|
5632
|
-
"flags-dir": {
|
|
5633
|
-
"helpGroup": "GLOBAL",
|
|
5634
|
-
"name": "flags-dir",
|
|
5635
|
-
"summary": "Import flag values from a directory.",
|
|
5636
|
-
"hasDynamicHelp": false,
|
|
5637
|
-
"multiple": false,
|
|
5638
|
-
"type": "option"
|
|
5639
|
-
},
|
|
5640
|
-
"target-org": {
|
|
5641
|
-
"char": "o",
|
|
5642
|
-
"name": "target-org",
|
|
5643
|
-
"noCacheDefault": true,
|
|
5644
|
-
"required": true,
|
|
5645
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5646
|
-
"hasDynamicHelp": true,
|
|
5647
|
-
"multiple": false,
|
|
5648
|
-
"type": "option"
|
|
5649
|
-
},
|
|
5650
|
-
"api-version": {
|
|
5651
|
-
"description": "Override the api version used for api requests made by this command",
|
|
5652
|
-
"name": "api-version",
|
|
5653
|
-
"hasDynamicHelp": false,
|
|
5654
|
-
"multiple": false,
|
|
5655
|
-
"type": "option"
|
|
5656
|
-
},
|
|
5657
|
-
"job-id": {
|
|
5658
|
-
"char": "i",
|
|
5659
|
-
"name": "job-id",
|
|
5660
|
-
"required": true,
|
|
5661
|
-
"summary": "Job ID of the completed agent test run.",
|
|
5662
|
-
"hasDynamicHelp": false,
|
|
5663
|
-
"multiple": false,
|
|
5664
|
-
"type": "option"
|
|
5665
|
-
},
|
|
5666
|
-
"result-format": {
|
|
5667
|
-
"name": "result-format",
|
|
5668
|
-
"summary": "Format of the agent test run results.",
|
|
5669
|
-
"default": "human",
|
|
5670
|
-
"hasDynamicHelp": false,
|
|
5671
|
-
"multiple": false,
|
|
5672
|
-
"options": [
|
|
5673
|
-
"json",
|
|
5674
|
-
"human",
|
|
5675
|
-
"junit",
|
|
5676
|
-
"tap"
|
|
5677
|
-
],
|
|
5678
|
-
"type": "option"
|
|
5679
|
-
},
|
|
5680
|
-
"output-dir": {
|
|
5681
|
-
"char": "d",
|
|
5682
|
-
"description": "If the agent test run completes, write the results to the specified directory. If the test is still running, the test results aren't written.",
|
|
5683
|
-
"name": "output-dir",
|
|
5684
|
-
"summary": "Directory to write the agent test results into.",
|
|
5685
|
-
"hasDynamicHelp": false,
|
|
5686
|
-
"multiple": false,
|
|
5687
|
-
"type": "option"
|
|
5688
|
-
}
|
|
5689
|
-
},
|
|
5690
|
-
"hasDynamicHelp": true,
|
|
5691
|
-
"hiddenAliases": [],
|
|
5692
|
-
"id": "agent:test:results",
|
|
5693
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
5694
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
5695
|
-
"pluginType": "jit",
|
|
5696
|
-
"strict": true,
|
|
5697
|
-
"summary": "Get the results of a completed agent test run.",
|
|
5698
|
-
"enableJsonFlag": true,
|
|
5699
|
-
"isESM": true,
|
|
5700
|
-
"relativePath": [
|
|
5701
|
-
"lib",
|
|
5702
|
-
"commands",
|
|
5703
|
-
"agent",
|
|
5704
|
-
"test",
|
|
5705
|
-
"results.js"
|
|
5706
|
-
],
|
|
5707
|
-
"aliasPermutations": [],
|
|
5708
|
-
"permutations": [
|
|
5709
|
-
"agent:test:results",
|
|
5710
|
-
"test:agent:results",
|
|
5711
|
-
"test:results:agent",
|
|
5712
|
-
"agent:results:test",
|
|
5713
|
-
"results:agent:test",
|
|
5714
|
-
"results:test:agent"
|
|
5715
|
-
]
|
|
5716
|
-
},
|
|
5717
|
-
"agent:test:resume": {
|
|
5718
|
-
"aliases": [],
|
|
5719
|
-
"args": {},
|
|
5720
|
-
"description": "This command requires a job ID, which the original \"agent test run\" command displays when it completes. You can also use the --use-most-recent flag to see results for the most recently run agent test.\n\nUse the --wait flag to specify the number of minutes for this command to wait for the agent test to complete; if the test completes by the end of the wait time, the command displays the test results. If not, the CLI returns control of the terminal to you, and you must run \"agent test resume\" again.\n\nBy default, this command outputs test results in human-readable tables for each test case. The tables show whether the test case passed, the expected and actual values, the test score, how long the test took, and more. Use the --result-format to display the test results in JSON or Junit format. Use the --output-dir flag to write the results to a file rather than to the terminal.",
|
|
5721
|
-
"examples": [
|
|
5722
|
-
"Resume an agent test in your default org using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ",
|
|
5723
|
-
"Resume the most recently-run agent test in an org with alias \"my-org\" org; wait 10 minutes for the tests to finish:\n<%= config.bin %> <%= command.id %> --use-most-recent --wait 10 --target-org my-org",
|
|
5724
|
-
"Resume the most recent agent test in your default org, and write the JSON-formatted results into a directory called \"test-results\":\n<%= config.bin %> <%= command.id %> --use-most-recent --output-dir ./test-results --result-format json"
|
|
5725
|
-
],
|
|
5726
|
-
"flags": {
|
|
5727
|
-
"json": {
|
|
5728
|
-
"description": "Format output as json.",
|
|
5729
|
-
"helpGroup": "GLOBAL",
|
|
5730
|
-
"name": "json",
|
|
5731
|
-
"allowNo": false,
|
|
5732
|
-
"type": "boolean"
|
|
5733
|
-
},
|
|
5734
|
-
"flags-dir": {
|
|
5735
|
-
"helpGroup": "GLOBAL",
|
|
5736
|
-
"name": "flags-dir",
|
|
5737
|
-
"summary": "Import flag values from a directory.",
|
|
5738
|
-
"hasDynamicHelp": false,
|
|
5739
|
-
"multiple": false,
|
|
5740
|
-
"type": "option"
|
|
5741
|
-
},
|
|
5742
|
-
"target-org": {
|
|
5743
|
-
"char": "o",
|
|
5744
|
-
"name": "target-org",
|
|
5745
|
-
"noCacheDefault": true,
|
|
5746
|
-
"required": true,
|
|
5747
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5748
|
-
"hasDynamicHelp": true,
|
|
5749
|
-
"multiple": false,
|
|
5750
|
-
"type": "option"
|
|
5751
|
-
},
|
|
5752
|
-
"api-version": {
|
|
5753
|
-
"description": "Override the api version used for api requests made by this command",
|
|
5754
|
-
"name": "api-version",
|
|
5755
|
-
"hasDynamicHelp": false,
|
|
5756
|
-
"multiple": false,
|
|
5757
|
-
"type": "option"
|
|
5758
|
-
},
|
|
5759
|
-
"job-id": {
|
|
5760
|
-
"char": "i",
|
|
5761
|
-
"name": "job-id",
|
|
5762
|
-
"summary": "Job ID of the original agent test run.",
|
|
5763
|
-
"hasDynamicHelp": false,
|
|
5764
|
-
"multiple": false,
|
|
5765
|
-
"type": "option"
|
|
5766
|
-
},
|
|
5767
|
-
"use-most-recent": {
|
|
5768
|
-
"char": "r",
|
|
5769
|
-
"name": "use-most-recent",
|
|
5770
|
-
"summary": "Use the job ID of the most recent agent test run.",
|
|
5771
|
-
"allowNo": false,
|
|
5772
|
-
"type": "boolean"
|
|
5773
|
-
},
|
|
5774
|
-
"wait": {
|
|
5775
|
-
"char": "w",
|
|
5776
|
-
"name": "wait",
|
|
5777
|
-
"summary": "Number of minutes to wait for the command to complete and display results to the terminal window.",
|
|
5778
|
-
"default": "5 minutes",
|
|
5779
|
-
"hasDynamicHelp": true,
|
|
5780
|
-
"multiple": false,
|
|
5781
|
-
"type": "option"
|
|
5782
|
-
},
|
|
5783
|
-
"result-format": {
|
|
5784
|
-
"name": "result-format",
|
|
5785
|
-
"summary": "Format of the agent test run results.",
|
|
5786
|
-
"default": "human",
|
|
5787
|
-
"hasDynamicHelp": false,
|
|
5788
|
-
"multiple": false,
|
|
5789
|
-
"options": [
|
|
5790
|
-
"json",
|
|
5791
|
-
"human",
|
|
5792
|
-
"junit",
|
|
5793
|
-
"tap"
|
|
5794
|
-
],
|
|
5795
|
-
"type": "option"
|
|
5796
|
-
},
|
|
5797
|
-
"output-dir": {
|
|
5798
|
-
"char": "d",
|
|
5799
|
-
"description": "If the agent test run completes, write the results to the specified directory. If the test is still running, the test results aren't written.",
|
|
5800
|
-
"name": "output-dir",
|
|
5801
|
-
"summary": "Directory to write the agent test results into.",
|
|
5802
|
-
"hasDynamicHelp": false,
|
|
5803
|
-
"multiple": false,
|
|
5804
|
-
"type": "option"
|
|
5805
|
-
}
|
|
5806
|
-
},
|
|
5807
|
-
"hasDynamicHelp": true,
|
|
5808
|
-
"hiddenAliases": [],
|
|
5809
|
-
"id": "agent:test:resume",
|
|
5810
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
5811
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
5812
|
-
"pluginType": "jit",
|
|
5813
|
-
"strict": true,
|
|
5814
|
-
"summary": "Resume an agent test that you previously started in your org so you can view the test results.",
|
|
5815
|
-
"enableJsonFlag": true,
|
|
5816
|
-
"isESM": true,
|
|
5817
|
-
"relativePath": [
|
|
5818
|
-
"lib",
|
|
5819
|
-
"commands",
|
|
5820
|
-
"agent",
|
|
5821
|
-
"test",
|
|
5822
|
-
"resume.js"
|
|
5823
|
-
],
|
|
5824
|
-
"aliasPermutations": [],
|
|
5825
|
-
"permutations": [
|
|
5826
|
-
"agent:test:resume",
|
|
5827
|
-
"test:agent:resume",
|
|
5828
|
-
"test:resume:agent",
|
|
5829
|
-
"agent:resume:test",
|
|
5830
|
-
"resume:agent:test",
|
|
5831
|
-
"resume:test:agent"
|
|
5832
|
-
]
|
|
5833
|
-
},
|
|
5834
|
-
"agent:test:run": {
|
|
5835
|
-
"aliases": [],
|
|
5836
|
-
"args": {},
|
|
5837
|
-
"description": "Use the --api-name flag to specify the name of the agent test you want to run. Use the output of the \"agent test list\" command to get the names of all the available agent tests in your org.\n\nBy default, this command starts the agent test in your org, but it doesn't wait for the test to finish. Instead, it displays the \"agent test resume\" command, with a job ID, that you execute to see the results of the test run, and then returns control of the terminal window to you. Use the --wait flag to specify the number of minutes for the command to wait for the agent test to complete; if the test completes by the end of the wait time, the command displays the test results. If not, run \"agent test resume\".\n\nBy default, this command outputs test results in human-readable tables for each test case, if the test completes in time. The tables show whether the test case passed, the expected and actual values, the test score, how long the test took, and more. Use the --result-format to display the test results in JSON or Junit format. Use the --output-dir flag to write the results to a file rather than to the terminal.",
|
|
5838
|
-
"examples": [
|
|
5839
|
-
"Start an agent test called Resort_Manager_Test for an agent in your default org, don't wait for the test to finish:\n<%= config.bin %> <%= command.id %> --api-name Resort_Manager_Test",
|
|
5840
|
-
"Start an agent test for an agent in an org with alias \"my-org\" and wait for 10 minutes for the test to finish:\n<%= config.bin %> <%= command.id %> --api-name Resort_Manager_Test --wait 10 --target-org my-org",
|
|
5841
|
-
"Start an agent test and write the JSON-formatted results into a directory called \"test-results\":\n<%= config.bin %> <%= command.id %> --api-name Resort_Manager_Test --wait 10 --output-dir ./test-results --result-format json"
|
|
5842
|
-
],
|
|
5843
|
-
"flags": {
|
|
5844
|
-
"json": {
|
|
5845
|
-
"description": "Format output as json.",
|
|
5846
|
-
"helpGroup": "GLOBAL",
|
|
5847
|
-
"name": "json",
|
|
5848
|
-
"allowNo": false,
|
|
5849
|
-
"type": "boolean"
|
|
5850
|
-
},
|
|
5851
|
-
"flags-dir": {
|
|
5852
|
-
"helpGroup": "GLOBAL",
|
|
5853
|
-
"name": "flags-dir",
|
|
5854
|
-
"summary": "Import flag values from a directory.",
|
|
5855
|
-
"hasDynamicHelp": false,
|
|
5856
|
-
"multiple": false,
|
|
5857
|
-
"type": "option"
|
|
5858
|
-
},
|
|
5859
|
-
"target-org": {
|
|
5860
|
-
"char": "o",
|
|
5861
|
-
"name": "target-org",
|
|
5862
|
-
"noCacheDefault": true,
|
|
5863
|
-
"required": true,
|
|
5864
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5865
|
-
"hasDynamicHelp": true,
|
|
5866
|
-
"multiple": false,
|
|
5867
|
-
"type": "option"
|
|
5868
|
-
},
|
|
5869
|
-
"api-version": {
|
|
5870
|
-
"description": "Override the api version used for api requests made by this command",
|
|
5871
|
-
"name": "api-version",
|
|
5872
|
-
"hasDynamicHelp": false,
|
|
5873
|
-
"multiple": false,
|
|
5874
|
-
"type": "option"
|
|
5875
|
-
},
|
|
5876
|
-
"api-name": {
|
|
5877
|
-
"char": "n",
|
|
5878
|
-
"name": "api-name",
|
|
5879
|
-
"summary": "API name of the agent test to run; corresponds to the name of the AiEvaluationDefinition metadata component that implements the agent test.",
|
|
5880
|
-
"hasDynamicHelp": false,
|
|
5881
|
-
"multiple": false,
|
|
5882
|
-
"type": "option"
|
|
5883
|
-
},
|
|
5884
|
-
"wait": {
|
|
5885
|
-
"char": "w",
|
|
5886
|
-
"name": "wait",
|
|
5887
|
-
"summary": "Number of minutes to wait for the command to complete and display results to the terminal window.",
|
|
5888
|
-
"hasDynamicHelp": true,
|
|
5889
|
-
"multiple": false,
|
|
5890
|
-
"type": "option"
|
|
5891
|
-
},
|
|
5892
|
-
"result-format": {
|
|
5893
|
-
"name": "result-format",
|
|
5894
|
-
"summary": "Format of the agent test run results.",
|
|
5895
|
-
"default": "human",
|
|
5896
|
-
"hasDynamicHelp": false,
|
|
5897
|
-
"multiple": false,
|
|
5898
|
-
"options": [
|
|
5899
|
-
"json",
|
|
5900
|
-
"human",
|
|
5901
|
-
"junit",
|
|
5902
|
-
"tap"
|
|
5903
|
-
],
|
|
5904
|
-
"type": "option"
|
|
5905
|
-
},
|
|
5906
|
-
"output-dir": {
|
|
5907
|
-
"char": "d",
|
|
5908
|
-
"description": "If the agent test run completes, write the results to the specified directory. If the test is still running, the test results aren't written.",
|
|
5909
|
-
"name": "output-dir",
|
|
5910
|
-
"summary": "Directory to write the agent test results into.",
|
|
5911
|
-
"hasDynamicHelp": false,
|
|
5912
|
-
"multiple": false,
|
|
5913
|
-
"type": "option"
|
|
5914
|
-
}
|
|
5915
|
-
},
|
|
5916
|
-
"hasDynamicHelp": true,
|
|
5917
|
-
"hiddenAliases": [],
|
|
5918
|
-
"id": "agent:test:run",
|
|
5919
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
5920
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
5921
|
-
"pluginType": "jit",
|
|
5922
|
-
"strict": true,
|
|
5923
|
-
"summary": "Start an agent test in your org.",
|
|
5924
|
-
"enableJsonFlag": true,
|
|
5925
|
-
"isESM": true,
|
|
5926
|
-
"relativePath": [
|
|
5927
|
-
"lib",
|
|
5928
|
-
"commands",
|
|
5929
|
-
"agent",
|
|
5930
|
-
"test",
|
|
5931
|
-
"run.js"
|
|
5932
|
-
],
|
|
5933
|
-
"aliasPermutations": [],
|
|
5934
|
-
"permutations": [
|
|
5935
|
-
"agent:test:run",
|
|
5936
|
-
"test:agent:run",
|
|
5937
|
-
"test:run:agent",
|
|
5938
|
-
"agent:run:test",
|
|
5939
|
-
"run:agent:test",
|
|
5940
|
-
"run:test:agent"
|
|
5941
|
-
]
|
|
5942
4832
|
}
|
|
5943
4833
|
},
|
|
5944
|
-
"version": "2.92.
|
|
4834
|
+
"version": "2.92.6"
|
|
5945
4835
|
}
|