@salesforce/plugin-agent 1.27.7 → 1.28.0
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 +223 -16
- package/lib/commands/agent/preview/end.d.ts +20 -0
- package/lib/commands/agent/preview/end.js +77 -0
- package/lib/commands/agent/preview/end.js.map +1 -0
- package/lib/commands/agent/preview/send.d.ts +23 -0
- package/lib/commands/agent/preview/send.js +74 -0
- package/lib/commands/agent/preview/send.js.map +1 -0
- package/lib/commands/agent/preview/sessions.d.ts +14 -0
- package/lib/commands/agent/preview/sessions.js +58 -0
- package/lib/commands/agent/preview/sessions.js.map +1 -0
- package/lib/commands/agent/preview/start.d.ts +19 -0
- package/lib/commands/agent/preview/start.js +66 -0
- package/lib/commands/agent/preview/start.js.map +1 -0
- package/lib/components/agent-preview-react.js.map +1 -1
- package/lib/previewSessionStore.d.ts +45 -0
- package/lib/previewSessionStore.js +159 -0
- package/lib/previewSessionStore.js.map +1 -0
- package/messages/agent.preview.end.md +47 -0
- package/messages/agent.preview.md +1 -1
- package/messages/agent.preview.send.md +47 -0
- package/messages/agent.preview.sessions.md +27 -0
- package/messages/agent.preview.start.md +41 -0
- package/oclif.manifest.json +365 -20
- package/package.json +3 -3
- package/schemas/agent-preview-end.json +19 -0
- package/schemas/agent-preview-send.json +28 -0
- package/schemas/agent-preview-sessions.json +25 -0
- package/schemas/agent-preview-start.json +16 -0
package/oclif.manifest.json
CHANGED
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
"api-name": {
|
|
283
283
|
"char": "n",
|
|
284
284
|
"name": "api-name",
|
|
285
|
-
"summary": "API name of the published
|
|
285
|
+
"summary": "API name of the activated published agent you want to interact with.",
|
|
286
286
|
"hasDynamicHelp": false,
|
|
287
287
|
"multiple": false,
|
|
288
288
|
"type": "option"
|
|
@@ -891,13 +891,14 @@
|
|
|
891
891
|
"authoring-bundle:publish:agent"
|
|
892
892
|
]
|
|
893
893
|
},
|
|
894
|
-
"agent:
|
|
894
|
+
"agent:preview:end": {
|
|
895
895
|
"aliases": [],
|
|
896
896
|
"args": {},
|
|
897
|
-
"description": "
|
|
897
|
+
"description": "You must have previously started a programmatic agent preview session with the \"agent preview start\" command to then use this command to end it. This command also displays the local directory where the session trace files are stored. \n\nThe original \"agent preview start\" command outputs a session ID which you then use with the --session-id flag of this command to end the session. You don't have to specify the --session-id flag if an agent has only one active preview session. You must also use either the --authoring-bundle or --api-name flag to specify the API name of the authoring bundle or the published agent, respecitvely. To find either API name, navigate to your package directory in your DX project. The API name of an authoring bundle is the same as its directory name under the \"aiAuthoringBundles\" metadata directory. Similarly, the published agent's API name is the same as its directory name under the \"Bots\" metadata directory.",
|
|
898
898
|
"examples": [
|
|
899
|
-
"
|
|
900
|
-
"
|
|
899
|
+
"End a preview session of a published agent by specifying its session ID and API name ; use the default org:\n<%= config.bin %> <%= command.id %> --session-id <SESSION_ID> --api-name My_Published_Agent",
|
|
900
|
+
"Similar to previous example, but don't specify a session ID; you get an error if the published agent has more than one active session. Use the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name My_Published_Agent --target-org my-dev-org",
|
|
901
|
+
"End a preview session of an agent using its authoring bundle API name; you get an error if the agent has more than one active session.\n<%= config.bin %> <%= command.id %> --authoring-bundle My_Local_Agent"
|
|
901
902
|
],
|
|
902
903
|
"flags": {
|
|
903
904
|
"json": {
|
|
@@ -932,10 +933,25 @@
|
|
|
932
933
|
"multiple": false,
|
|
933
934
|
"type": "option"
|
|
934
935
|
},
|
|
936
|
+
"session-id": {
|
|
937
|
+
"name": "session-id",
|
|
938
|
+
"required": false,
|
|
939
|
+
"summary": "Session ID outputted by \"agent preview start\". Not required when the agent has exactly one active session. Run \"agent preview sessions\" to see the list of all sessions.",
|
|
940
|
+
"hasDynamicHelp": false,
|
|
941
|
+
"multiple": false,
|
|
942
|
+
"type": "option"
|
|
943
|
+
},
|
|
935
944
|
"api-name": {
|
|
936
945
|
"char": "n",
|
|
937
946
|
"name": "api-name",
|
|
938
|
-
"summary": "API name of the
|
|
947
|
+
"summary": "API name of the activated published agent you want to preview.",
|
|
948
|
+
"hasDynamicHelp": false,
|
|
949
|
+
"multiple": false,
|
|
950
|
+
"type": "option"
|
|
951
|
+
},
|
|
952
|
+
"authoring-bundle": {
|
|
953
|
+
"name": "authoring-bundle",
|
|
954
|
+
"summary": "API name of the authoring bundle metadata component that contains the agent's Agent Script file.",
|
|
939
955
|
"hasDynamicHelp": false,
|
|
940
956
|
"multiple": false,
|
|
941
957
|
"type": "option"
|
|
@@ -943,36 +959,281 @@
|
|
|
943
959
|
},
|
|
944
960
|
"hasDynamicHelp": true,
|
|
945
961
|
"hiddenAliases": [],
|
|
946
|
-
"id": "agent:
|
|
962
|
+
"id": "agent:preview:end",
|
|
947
963
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
948
964
|
"pluginName": "@salesforce/plugin-agent",
|
|
949
965
|
"pluginType": "core",
|
|
966
|
+
"state": "beta",
|
|
950
967
|
"strict": true,
|
|
951
|
-
"summary": "
|
|
968
|
+
"summary": "End an existing programmatic agent preview session and get trace location.",
|
|
952
969
|
"enableJsonFlag": true,
|
|
953
970
|
"requiresProject": true,
|
|
954
|
-
"
|
|
971
|
+
"isESM": true,
|
|
972
|
+
"relativePath": [
|
|
973
|
+
"lib",
|
|
974
|
+
"commands",
|
|
975
|
+
"agent",
|
|
976
|
+
"preview",
|
|
977
|
+
"end.js"
|
|
978
|
+
],
|
|
979
|
+
"aliasPermutations": [],
|
|
980
|
+
"permutations": [
|
|
981
|
+
"agent:preview:end",
|
|
982
|
+
"preview:agent:end",
|
|
983
|
+
"preview:end:agent",
|
|
984
|
+
"agent:end:preview",
|
|
985
|
+
"end:agent:preview",
|
|
986
|
+
"end:preview:agent"
|
|
987
|
+
]
|
|
988
|
+
},
|
|
989
|
+
"agent:preview:send": {
|
|
990
|
+
"aliases": [],
|
|
991
|
+
"args": {},
|
|
992
|
+
"description": "You must have previously started a programmatic agent preview session with the \"agent preview start\" command to then use this command to send the agent a message (utterance). This command then displays the agent's response.\n\nThe original \"agent preview start\" command outputs a session ID which you then use with the --session-id flag of this command to send a message. You don't have to specify the --session-id flag if an agent has only one active preview session. You must also use either the --authoring-bundle or --api-name flag to specify the API name of the authoring bundle or the published agent, respecitvely. To find either API name, navigate to your package directory in your DX project. The API name of an authoring bundle is the same as its directory name under the \"aiAuthoringBundles\" metadata directory. Similarly, the published agent's API name is the same as its directory name under the \"Bots\" metadata directory.",
|
|
993
|
+
"examples": [
|
|
994
|
+
"Send a message to an activated published agent using its API name and session ID; use the default org:\n<%= config.bin %> <%= command.id %> --utterance \"What can you help me with?\" --api-name My_Published_Agent --session-id <SESSION_ID>",
|
|
995
|
+
"Similar to previous example, but don't specify a session ID; you get an error if the agent has more than one active session. Use the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --utterance \"What can you help me with?\" --api-name My_Published_Agent --target-org my-dev-org",
|
|
996
|
+
"Send a message to an agent using its authoring bundle API name; you get an error if the agent has more than one active session:\n<%= config.bin %> <%= command.id %> --utterance \"what can you help me with?\" --authoring-bundle My_Local_Agent"
|
|
997
|
+
],
|
|
998
|
+
"flags": {
|
|
999
|
+
"json": {
|
|
1000
|
+
"description": "Format output as json.",
|
|
1001
|
+
"helpGroup": "GLOBAL",
|
|
1002
|
+
"name": "json",
|
|
1003
|
+
"allowNo": false,
|
|
1004
|
+
"type": "boolean"
|
|
1005
|
+
},
|
|
1006
|
+
"flags-dir": {
|
|
1007
|
+
"helpGroup": "GLOBAL",
|
|
1008
|
+
"name": "flags-dir",
|
|
1009
|
+
"summary": "Import flag values from a directory.",
|
|
1010
|
+
"hasDynamicHelp": false,
|
|
1011
|
+
"multiple": false,
|
|
1012
|
+
"type": "option"
|
|
1013
|
+
},
|
|
1014
|
+
"target-org": {
|
|
1015
|
+
"char": "o",
|
|
1016
|
+
"name": "target-org",
|
|
1017
|
+
"noCacheDefault": true,
|
|
1018
|
+
"required": true,
|
|
1019
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1020
|
+
"hasDynamicHelp": true,
|
|
1021
|
+
"multiple": false,
|
|
1022
|
+
"type": "option"
|
|
1023
|
+
},
|
|
1024
|
+
"api-version": {
|
|
1025
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1026
|
+
"name": "api-version",
|
|
1027
|
+
"hasDynamicHelp": false,
|
|
1028
|
+
"multiple": false,
|
|
1029
|
+
"type": "option"
|
|
1030
|
+
},
|
|
1031
|
+
"session-id": {
|
|
1032
|
+
"name": "session-id",
|
|
1033
|
+
"required": false,
|
|
1034
|
+
"summary": "Session ID outputted by \"agent preview start\". Not required when the agent has exactly one active session. Run \"agent preview sessions\" to see list of all sessions.",
|
|
1035
|
+
"hasDynamicHelp": false,
|
|
1036
|
+
"multiple": false,
|
|
1037
|
+
"type": "option"
|
|
1038
|
+
},
|
|
1039
|
+
"utterance": {
|
|
1040
|
+
"char": "u",
|
|
1041
|
+
"name": "utterance",
|
|
1042
|
+
"required": true,
|
|
1043
|
+
"summary": "Utterance to send to the agent, enclosed in double quotes.",
|
|
1044
|
+
"hasDynamicHelp": false,
|
|
1045
|
+
"multiple": false,
|
|
1046
|
+
"type": "option"
|
|
1047
|
+
},
|
|
955
1048
|
"api-name": {
|
|
956
|
-
"
|
|
957
|
-
"
|
|
1049
|
+
"char": "n",
|
|
1050
|
+
"name": "api-name",
|
|
1051
|
+
"summary": "API name of the activated published agent you want to preview.",
|
|
1052
|
+
"hasDynamicHelp": false,
|
|
1053
|
+
"multiple": false,
|
|
1054
|
+
"type": "option"
|
|
1055
|
+
},
|
|
1056
|
+
"authoring-bundle": {
|
|
1057
|
+
"name": "authoring-bundle",
|
|
1058
|
+
"summary": "API name of the authoring bundle metadata component that contains the agent's Agent Script file.",
|
|
1059
|
+
"hasDynamicHelp": false,
|
|
1060
|
+
"multiple": false,
|
|
1061
|
+
"type": "option"
|
|
958
1062
|
}
|
|
959
1063
|
},
|
|
1064
|
+
"hasDynamicHelp": true,
|
|
1065
|
+
"hiddenAliases": [],
|
|
1066
|
+
"id": "agent:preview:send",
|
|
1067
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
1068
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
1069
|
+
"pluginType": "core",
|
|
1070
|
+
"state": "beta",
|
|
1071
|
+
"strict": true,
|
|
1072
|
+
"summary": "Send a message to an existing agent preview session.",
|
|
1073
|
+
"enableJsonFlag": true,
|
|
1074
|
+
"requiresProject": true,
|
|
960
1075
|
"isESM": true,
|
|
961
1076
|
"relativePath": [
|
|
962
1077
|
"lib",
|
|
963
1078
|
"commands",
|
|
964
1079
|
"agent",
|
|
965
|
-
"
|
|
966
|
-
"
|
|
1080
|
+
"preview",
|
|
1081
|
+
"send.js"
|
|
967
1082
|
],
|
|
968
1083
|
"aliasPermutations": [],
|
|
969
1084
|
"permutations": [
|
|
970
|
-
"agent:
|
|
971
|
-
"
|
|
972
|
-
"
|
|
973
|
-
"agent:
|
|
974
|
-
"
|
|
975
|
-
"
|
|
1085
|
+
"agent:preview:send",
|
|
1086
|
+
"preview:agent:send",
|
|
1087
|
+
"preview:send:agent",
|
|
1088
|
+
"agent:send:preview",
|
|
1089
|
+
"send:agent:preview",
|
|
1090
|
+
"send:preview:agent"
|
|
1091
|
+
]
|
|
1092
|
+
},
|
|
1093
|
+
"agent:preview:sessions": {
|
|
1094
|
+
"aliases": [],
|
|
1095
|
+
"args": {},
|
|
1096
|
+
"description": "This command lists the agent preview sessions that were started with the \"agent preview start\" command and are still in the local cache. Use this command to discover specific session IDs that you can pass to the \"agent preview send\" or \"agent preview end\" commands with the --session-id flag.\n\nProgrammatic agent preview sessions can be started for both published activated agents and by using an agent's local authoring bundle, which contains its Agent Script file. In this command's output table, the Agent column contains either the API name of the authoring bundle or the published agent, whichever was used when starting the session. In the table, if the same API name has multiple rows with different session IDs, then it means that you previously started multiple preview sessions with the associated agent.",
|
|
1097
|
+
"examples": [
|
|
1098
|
+
"List all cached agent preview sessions:\n<%= config.bin %> <%= command.id %>"
|
|
1099
|
+
],
|
|
1100
|
+
"flags": {
|
|
1101
|
+
"json": {
|
|
1102
|
+
"description": "Format output as json.",
|
|
1103
|
+
"helpGroup": "GLOBAL",
|
|
1104
|
+
"name": "json",
|
|
1105
|
+
"allowNo": false,
|
|
1106
|
+
"type": "boolean"
|
|
1107
|
+
},
|
|
1108
|
+
"flags-dir": {
|
|
1109
|
+
"helpGroup": "GLOBAL",
|
|
1110
|
+
"name": "flags-dir",
|
|
1111
|
+
"summary": "Import flag values from a directory.",
|
|
1112
|
+
"hasDynamicHelp": false,
|
|
1113
|
+
"multiple": false,
|
|
1114
|
+
"type": "option"
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
"hasDynamicHelp": false,
|
|
1118
|
+
"hiddenAliases": [],
|
|
1119
|
+
"id": "agent:preview:sessions",
|
|
1120
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
1121
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
1122
|
+
"pluginType": "core",
|
|
1123
|
+
"state": "beta",
|
|
1124
|
+
"strict": true,
|
|
1125
|
+
"summary": "List all known programmatic agent preview sessions.",
|
|
1126
|
+
"enableJsonFlag": true,
|
|
1127
|
+
"requiresProject": true,
|
|
1128
|
+
"isESM": true,
|
|
1129
|
+
"relativePath": [
|
|
1130
|
+
"lib",
|
|
1131
|
+
"commands",
|
|
1132
|
+
"agent",
|
|
1133
|
+
"preview",
|
|
1134
|
+
"sessions.js"
|
|
1135
|
+
],
|
|
1136
|
+
"aliasPermutations": [],
|
|
1137
|
+
"permutations": [
|
|
1138
|
+
"agent:preview:sessions",
|
|
1139
|
+
"preview:agent:sessions",
|
|
1140
|
+
"preview:sessions:agent",
|
|
1141
|
+
"agent:sessions:preview",
|
|
1142
|
+
"sessions:agent:preview",
|
|
1143
|
+
"sessions:preview:agent"
|
|
1144
|
+
]
|
|
1145
|
+
},
|
|
1146
|
+
"agent:preview:start": {
|
|
1147
|
+
"aliases": [],
|
|
1148
|
+
"args": {},
|
|
1149
|
+
"description": "This command outputs a session ID that you then use with the \"agent preview send\" command to send an utterance to the agent. Use the \"agent preview sessions\" command to list all active sessions and the \"agent preview end\" command to end a specific session.\n\nIdentify the agent you want to start previewing with either the --authoring-bundle flag to specify a local authoring bundle's API name or --api-name to specify an activated published agent's API name. To find either API name, navigate to your package directory in your DX project. The API name of an authoring bundle is the same as its directory name under the \"aiAuthoringBundles\" metadata directory. Similarly, the published agent's API name is the same as its directory name under the \"Bots\" metadata directory. \n\nWhen starting a preview session using the authoring bundle, which contains the agent's Agent Script file, the preview uses mocked actions by default. Specify --use-live-actions for live mode, which uses the real Apex classes, flows, etc, in the org for the actions.",
|
|
1150
|
+
"examples": [
|
|
1151
|
+
"Start a programmatic agent preview session by specifying an authoring bundle; uses mocked actions by default. Use the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --authoring-bundle My_Agent_Bundle --target-org my-dev-org",
|
|
1152
|
+
"Similar to previous example but use live actions and the default org:\n<%= config.bin %> <%= command.id %> --authoring-bundle My_Agent_Bundle --use-live-actions",
|
|
1153
|
+
"Start a preview session with an activated published agent:\n<%= config.bin %> <%= command.id %> --api-name My_Published_Agent"
|
|
1154
|
+
],
|
|
1155
|
+
"flags": {
|
|
1156
|
+
"json": {
|
|
1157
|
+
"description": "Format output as json.",
|
|
1158
|
+
"helpGroup": "GLOBAL",
|
|
1159
|
+
"name": "json",
|
|
1160
|
+
"allowNo": false,
|
|
1161
|
+
"type": "boolean"
|
|
1162
|
+
},
|
|
1163
|
+
"flags-dir": {
|
|
1164
|
+
"helpGroup": "GLOBAL",
|
|
1165
|
+
"name": "flags-dir",
|
|
1166
|
+
"summary": "Import flag values from a directory.",
|
|
1167
|
+
"hasDynamicHelp": false,
|
|
1168
|
+
"multiple": false,
|
|
1169
|
+
"type": "option"
|
|
1170
|
+
},
|
|
1171
|
+
"target-org": {
|
|
1172
|
+
"char": "o",
|
|
1173
|
+
"name": "target-org",
|
|
1174
|
+
"noCacheDefault": true,
|
|
1175
|
+
"required": true,
|
|
1176
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1177
|
+
"hasDynamicHelp": true,
|
|
1178
|
+
"multiple": false,
|
|
1179
|
+
"type": "option"
|
|
1180
|
+
},
|
|
1181
|
+
"api-version": {
|
|
1182
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1183
|
+
"name": "api-version",
|
|
1184
|
+
"hasDynamicHelp": false,
|
|
1185
|
+
"multiple": false,
|
|
1186
|
+
"type": "option"
|
|
1187
|
+
},
|
|
1188
|
+
"api-name": {
|
|
1189
|
+
"char": "n",
|
|
1190
|
+
"name": "api-name",
|
|
1191
|
+
"summary": "API name of the activated published agent you want to preview.",
|
|
1192
|
+
"hasDynamicHelp": false,
|
|
1193
|
+
"multiple": false,
|
|
1194
|
+
"type": "option"
|
|
1195
|
+
},
|
|
1196
|
+
"authoring-bundle": {
|
|
1197
|
+
"name": "authoring-bundle",
|
|
1198
|
+
"summary": "API name of the authoring bundle metadata component that contains the agent's Agent Script file.",
|
|
1199
|
+
"hasDynamicHelp": false,
|
|
1200
|
+
"multiple": false,
|
|
1201
|
+
"type": "option"
|
|
1202
|
+
},
|
|
1203
|
+
"use-live-actions": {
|
|
1204
|
+
"name": "use-live-actions",
|
|
1205
|
+
"summary": "Use real actions in the org; if not specified, preview uses AI to simulate (mock) actions.",
|
|
1206
|
+
"allowNo": false,
|
|
1207
|
+
"type": "boolean"
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
"hasDynamicHelp": true,
|
|
1211
|
+
"hiddenAliases": [],
|
|
1212
|
+
"id": "agent:preview:start",
|
|
1213
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
1214
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
1215
|
+
"pluginType": "core",
|
|
1216
|
+
"state": "beta",
|
|
1217
|
+
"strict": true,
|
|
1218
|
+
"summary": "Start a programmatic agent preview session.",
|
|
1219
|
+
"enableJsonFlag": true,
|
|
1220
|
+
"requiresProject": true,
|
|
1221
|
+
"isESM": true,
|
|
1222
|
+
"relativePath": [
|
|
1223
|
+
"lib",
|
|
1224
|
+
"commands",
|
|
1225
|
+
"agent",
|
|
1226
|
+
"preview",
|
|
1227
|
+
"start.js"
|
|
1228
|
+
],
|
|
1229
|
+
"aliasPermutations": [],
|
|
1230
|
+
"permutations": [
|
|
1231
|
+
"agent:preview:start",
|
|
1232
|
+
"preview:agent:start",
|
|
1233
|
+
"preview:start:agent",
|
|
1234
|
+
"agent:start:preview",
|
|
1235
|
+
"start:agent:preview",
|
|
1236
|
+
"start:preview:agent"
|
|
976
1237
|
]
|
|
977
1238
|
},
|
|
978
1239
|
"agent:test:create": {
|
|
@@ -1488,7 +1749,91 @@
|
|
|
1488
1749
|
"run:agent:test",
|
|
1489
1750
|
"run:test:agent"
|
|
1490
1751
|
]
|
|
1752
|
+
},
|
|
1753
|
+
"agent:validate:authoring-bundle": {
|
|
1754
|
+
"aliases": [],
|
|
1755
|
+
"args": {},
|
|
1756
|
+
"description": "An authoring bundle is a metadata type (named aiAuthoringBundle) that provides the blueprint for an agent. The metadata type contains two files: the standard metatada XML file and an Agent Script file (extension \".agent\") that fully describes the agent using the Agent Script language.\n\nThis command validates that the Agent Script file in the authoring bundle compiles without errors so that you can later publish the bundle to your org. Use this command while you code the Agent Script file to ensure that it's valid. If the validation fails, the command outputs the list of syntax errors, a brief description of the error, and the location in the Agent Script file where the error occurred.\n\nThis command uses the API name of the authoring bundle. If you don't provide an API name with the --api-name flag, the command searches the current DX project and outputs a list of authoring bundles that it found for you to choose from.",
|
|
1757
|
+
"examples": [
|
|
1758
|
+
"Validate an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
|
|
1759
|
+
"Validate an authoring bundle with API name MyAuthoringBundle; use the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringBundle --target-org my-dev-org"
|
|
1760
|
+
],
|
|
1761
|
+
"flags": {
|
|
1762
|
+
"json": {
|
|
1763
|
+
"description": "Format output as json.",
|
|
1764
|
+
"helpGroup": "GLOBAL",
|
|
1765
|
+
"name": "json",
|
|
1766
|
+
"allowNo": false,
|
|
1767
|
+
"type": "boolean"
|
|
1768
|
+
},
|
|
1769
|
+
"flags-dir": {
|
|
1770
|
+
"helpGroup": "GLOBAL",
|
|
1771
|
+
"name": "flags-dir",
|
|
1772
|
+
"summary": "Import flag values from a directory.",
|
|
1773
|
+
"hasDynamicHelp": false,
|
|
1774
|
+
"multiple": false,
|
|
1775
|
+
"type": "option"
|
|
1776
|
+
},
|
|
1777
|
+
"target-org": {
|
|
1778
|
+
"char": "o",
|
|
1779
|
+
"name": "target-org",
|
|
1780
|
+
"noCacheDefault": true,
|
|
1781
|
+
"required": true,
|
|
1782
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1783
|
+
"hasDynamicHelp": true,
|
|
1784
|
+
"multiple": false,
|
|
1785
|
+
"type": "option"
|
|
1786
|
+
},
|
|
1787
|
+
"api-version": {
|
|
1788
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1789
|
+
"name": "api-version",
|
|
1790
|
+
"hasDynamicHelp": false,
|
|
1791
|
+
"multiple": false,
|
|
1792
|
+
"type": "option"
|
|
1793
|
+
},
|
|
1794
|
+
"api-name": {
|
|
1795
|
+
"char": "n",
|
|
1796
|
+
"name": "api-name",
|
|
1797
|
+
"summary": "API name of the authoring bundle you want to validate; if not specified, the command provides a list that you can choose from.",
|
|
1798
|
+
"hasDynamicHelp": false,
|
|
1799
|
+
"multiple": false,
|
|
1800
|
+
"type": "option"
|
|
1801
|
+
}
|
|
1802
|
+
},
|
|
1803
|
+
"hasDynamicHelp": true,
|
|
1804
|
+
"hiddenAliases": [],
|
|
1805
|
+
"id": "agent:validate:authoring-bundle",
|
|
1806
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
1807
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
1808
|
+
"pluginType": "core",
|
|
1809
|
+
"strict": true,
|
|
1810
|
+
"summary": "Validate an authoring bundle to ensure its Agent Script file compiles successfully and can be used to publish an agent.",
|
|
1811
|
+
"enableJsonFlag": true,
|
|
1812
|
+
"requiresProject": true,
|
|
1813
|
+
"FLAGGABLE_PROMPTS": {
|
|
1814
|
+
"api-name": {
|
|
1815
|
+
"message": "API name of the authoring bundle you want to validate; if not specified, the command provides a list that you can choose from.",
|
|
1816
|
+
"promptMessage": "API name of the authoring bundle to validate"
|
|
1817
|
+
}
|
|
1818
|
+
},
|
|
1819
|
+
"isESM": true,
|
|
1820
|
+
"relativePath": [
|
|
1821
|
+
"lib",
|
|
1822
|
+
"commands",
|
|
1823
|
+
"agent",
|
|
1824
|
+
"validate",
|
|
1825
|
+
"authoring-bundle.js"
|
|
1826
|
+
],
|
|
1827
|
+
"aliasPermutations": [],
|
|
1828
|
+
"permutations": [
|
|
1829
|
+
"agent:validate:authoring-bundle",
|
|
1830
|
+
"validate:agent:authoring-bundle",
|
|
1831
|
+
"validate:authoring-bundle:agent",
|
|
1832
|
+
"agent:authoring-bundle:validate",
|
|
1833
|
+
"authoring-bundle:agent:validate",
|
|
1834
|
+
"authoring-bundle:validate:agent"
|
|
1835
|
+
]
|
|
1491
1836
|
}
|
|
1492
1837
|
},
|
|
1493
|
-
"version": "1.
|
|
1838
|
+
"version": "1.28.0"
|
|
1494
1839
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
3
|
"description": "Commands to interact with Salesforce agents",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.28.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"enableO11y": true,
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"exports": "./lib/index.js",
|
|
240
240
|
"type": "module",
|
|
241
241
|
"sfdx": {
|
|
242
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
243
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
242
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.28.0.crt",
|
|
243
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.28.0.sig"
|
|
244
244
|
}
|
|
245
245
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/AgentPreviewEndResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AgentPreviewEndResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sessionId": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"tracesPath": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": ["sessionId", "tracesPath"],
|
|
16
|
+
"additionalProperties": false
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/AgentPreviewSendResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AgentPreviewSendResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"messages": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"message": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"role": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"additionalProperties": false
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": ["messages"],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/AgentPreviewSessionsResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AgentPreviewSessionsResult": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"agentId": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"displayName": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"sessionId": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": ["agentId", "sessionId"],
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/AgentPreviewStartResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AgentPreviewStartResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sessionId": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["sessionId"],
|
|
13
|
+
"additionalProperties": false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|