@salesforce/plugin-agent 1.27.6 → 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.
@@ -282,7 +282,7 @@
282
282
  "api-name": {
283
283
  "char": "n",
284
284
  "name": "api-name",
285
- "summary": "API name of the published and active agent you want to interact with.",
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"
@@ -801,6 +801,441 @@
801
801
  "test-spec:generate:agent"
802
802
  ]
803
803
  },
804
+ "agent:publish:authoring-bundle": {
805
+ "aliases": [],
806
+ "args": {},
807
+ "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\nWhen you publish an authoring bundle to your org, a number of things happen. First, this command validates that the Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent Script file to continue. Once the Agent Script file compiles, then it's published to the org, which in turn creates new associated metadata (Bot, BotVersion, GenAiX), or new versions of the metadata if the agent already exists. The new or updated metadata is retrieved back to your DX project; specify the --skip-retrieve flag to skip this step. Finally, the authoring bundle metadata (AiAuthoringBundle) is deployed to your org.\n\nThis command uses the API name of the authoring bundle.",
808
+ "examples": [
809
+ "Publish an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
810
+ "Publish an authoring bundle with API name MyAuthoringBundle to the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --target-org my-dev-org"
811
+ ],
812
+ "flags": {
813
+ "json": {
814
+ "description": "Format output as json.",
815
+ "helpGroup": "GLOBAL",
816
+ "name": "json",
817
+ "allowNo": false,
818
+ "type": "boolean"
819
+ },
820
+ "flags-dir": {
821
+ "helpGroup": "GLOBAL",
822
+ "name": "flags-dir",
823
+ "summary": "Import flag values from a directory.",
824
+ "hasDynamicHelp": false,
825
+ "multiple": false,
826
+ "type": "option"
827
+ },
828
+ "target-org": {
829
+ "char": "o",
830
+ "name": "target-org",
831
+ "noCacheDefault": true,
832
+ "required": true,
833
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
834
+ "hasDynamicHelp": true,
835
+ "multiple": false,
836
+ "type": "option"
837
+ },
838
+ "api-version": {
839
+ "description": "Override the api version used for api requests made by this command",
840
+ "name": "api-version",
841
+ "hasDynamicHelp": false,
842
+ "multiple": false,
843
+ "type": "option"
844
+ },
845
+ "api-name": {
846
+ "char": "n",
847
+ "name": "api-name",
848
+ "summary": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
849
+ "hasDynamicHelp": false,
850
+ "multiple": false,
851
+ "type": "option"
852
+ },
853
+ "skip-retrieve": {
854
+ "name": "skip-retrieve",
855
+ "summary": "Don't retrieve the metadata associated with the agent to your DX project.",
856
+ "allowNo": false,
857
+ "type": "boolean"
858
+ }
859
+ },
860
+ "hasDynamicHelp": true,
861
+ "hiddenAliases": [],
862
+ "id": "agent:publish:authoring-bundle",
863
+ "pluginAlias": "@salesforce/plugin-agent",
864
+ "pluginName": "@salesforce/plugin-agent",
865
+ "pluginType": "core",
866
+ "strict": true,
867
+ "summary": "Publish an authoring bundle to your org, which results in a new agent or a new version of an existing agent.",
868
+ "enableJsonFlag": true,
869
+ "requiresProject": true,
870
+ "FLAGGABLE_PROMPTS": {
871
+ "api-name": {
872
+ "message": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
873
+ "promptMessage": "API name of the authoring bundle to publish"
874
+ }
875
+ },
876
+ "isESM": true,
877
+ "relativePath": [
878
+ "lib",
879
+ "commands",
880
+ "agent",
881
+ "publish",
882
+ "authoring-bundle.js"
883
+ ],
884
+ "aliasPermutations": [],
885
+ "permutations": [
886
+ "agent:publish:authoring-bundle",
887
+ "publish:agent:authoring-bundle",
888
+ "publish:authoring-bundle:agent",
889
+ "agent:authoring-bundle:publish",
890
+ "authoring-bundle:agent:publish",
891
+ "authoring-bundle:publish:agent"
892
+ ]
893
+ },
894
+ "agent:preview:end": {
895
+ "aliases": [],
896
+ "args": {},
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
+ "examples": [
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"
902
+ ],
903
+ "flags": {
904
+ "json": {
905
+ "description": "Format output as json.",
906
+ "helpGroup": "GLOBAL",
907
+ "name": "json",
908
+ "allowNo": false,
909
+ "type": "boolean"
910
+ },
911
+ "flags-dir": {
912
+ "helpGroup": "GLOBAL",
913
+ "name": "flags-dir",
914
+ "summary": "Import flag values from a directory.",
915
+ "hasDynamicHelp": false,
916
+ "multiple": false,
917
+ "type": "option"
918
+ },
919
+ "target-org": {
920
+ "char": "o",
921
+ "name": "target-org",
922
+ "noCacheDefault": true,
923
+ "required": true,
924
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
925
+ "hasDynamicHelp": true,
926
+ "multiple": false,
927
+ "type": "option"
928
+ },
929
+ "api-version": {
930
+ "description": "Override the api version used for api requests made by this command",
931
+ "name": "api-version",
932
+ "hasDynamicHelp": false,
933
+ "multiple": false,
934
+ "type": "option"
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
+ },
944
+ "api-name": {
945
+ "char": "n",
946
+ "name": "api-name",
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.",
955
+ "hasDynamicHelp": false,
956
+ "multiple": false,
957
+ "type": "option"
958
+ }
959
+ },
960
+ "hasDynamicHelp": true,
961
+ "hiddenAliases": [],
962
+ "id": "agent:preview:end",
963
+ "pluginAlias": "@salesforce/plugin-agent",
964
+ "pluginName": "@salesforce/plugin-agent",
965
+ "pluginType": "core",
966
+ "state": "beta",
967
+ "strict": true,
968
+ "summary": "End an existing programmatic agent preview session and get trace location.",
969
+ "enableJsonFlag": true,
970
+ "requiresProject": true,
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
+ },
1048
+ "api-name": {
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"
1062
+ }
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,
1075
+ "isESM": true,
1076
+ "relativePath": [
1077
+ "lib",
1078
+ "commands",
1079
+ "agent",
1080
+ "preview",
1081
+ "send.js"
1082
+ ],
1083
+ "aliasPermutations": [],
1084
+ "permutations": [
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"
1237
+ ]
1238
+ },
804
1239
  "agent:test:create": {
805
1240
  "aliases": [],
806
1241
  "args": {},
@@ -1398,97 +1833,7 @@
1398
1833
  "authoring-bundle:agent:validate",
1399
1834
  "authoring-bundle:validate:agent"
1400
1835
  ]
1401
- },
1402
- "agent:publish:authoring-bundle": {
1403
- "aliases": [],
1404
- "args": {},
1405
- "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\nWhen you publish an authoring bundle to your org, a number of things happen. First, this command validates that the Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent Script file to continue. Once the Agent Script file compiles, then it's published to the org, which in turn creates new associated metadata (Bot, BotVersion, GenAiX), or new versions of the metadata if the agent already exists. The new or updated metadata is retrieved back to your DX project; specify the --skip-retrieve flag to skip this step. Finally, the authoring bundle metadata (AiAuthoringBundle) is deployed to your org.\n\nThis command uses the API name of the authoring bundle.",
1406
- "examples": [
1407
- "Publish an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
1408
- "Publish an authoring bundle with API name MyAuthoringBundle to the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --target-org my-dev-org"
1409
- ],
1410
- "flags": {
1411
- "json": {
1412
- "description": "Format output as json.",
1413
- "helpGroup": "GLOBAL",
1414
- "name": "json",
1415
- "allowNo": false,
1416
- "type": "boolean"
1417
- },
1418
- "flags-dir": {
1419
- "helpGroup": "GLOBAL",
1420
- "name": "flags-dir",
1421
- "summary": "Import flag values from a directory.",
1422
- "hasDynamicHelp": false,
1423
- "multiple": false,
1424
- "type": "option"
1425
- },
1426
- "target-org": {
1427
- "char": "o",
1428
- "name": "target-org",
1429
- "noCacheDefault": true,
1430
- "required": true,
1431
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1432
- "hasDynamicHelp": true,
1433
- "multiple": false,
1434
- "type": "option"
1435
- },
1436
- "api-version": {
1437
- "description": "Override the api version used for api requests made by this command",
1438
- "name": "api-version",
1439
- "hasDynamicHelp": false,
1440
- "multiple": false,
1441
- "type": "option"
1442
- },
1443
- "api-name": {
1444
- "char": "n",
1445
- "name": "api-name",
1446
- "summary": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
1447
- "hasDynamicHelp": false,
1448
- "multiple": false,
1449
- "type": "option"
1450
- },
1451
- "skip-retrieve": {
1452
- "name": "skip-retrieve",
1453
- "summary": "Don't retrieve the metadata associated with the agent to your DX project.",
1454
- "allowNo": false,
1455
- "type": "boolean"
1456
- }
1457
- },
1458
- "hasDynamicHelp": true,
1459
- "hiddenAliases": [],
1460
- "id": "agent:publish:authoring-bundle",
1461
- "pluginAlias": "@salesforce/plugin-agent",
1462
- "pluginName": "@salesforce/plugin-agent",
1463
- "pluginType": "core",
1464
- "strict": true,
1465
- "summary": "Publish an authoring bundle to your org, which results in a new agent or a new version of an existing agent.",
1466
- "enableJsonFlag": true,
1467
- "requiresProject": true,
1468
- "FLAGGABLE_PROMPTS": {
1469
- "api-name": {
1470
- "message": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
1471
- "promptMessage": "API name of the authoring bundle to publish"
1472
- }
1473
- },
1474
- "isESM": true,
1475
- "relativePath": [
1476
- "lib",
1477
- "commands",
1478
- "agent",
1479
- "publish",
1480
- "authoring-bundle.js"
1481
- ],
1482
- "aliasPermutations": [],
1483
- "permutations": [
1484
- "agent:publish:authoring-bundle",
1485
- "publish:agent:authoring-bundle",
1486
- "publish:authoring-bundle:agent",
1487
- "agent:authoring-bundle:publish",
1488
- "authoring-bundle:agent:publish",
1489
- "authoring-bundle:publish:agent"
1490
- ]
1491
1836
  }
1492
1837
  },
1493
- "version": "1.27.6"
1838
+ "version": "1.28.0"
1494
1839
  }
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-agent",
3
3
  "description": "Commands to interact with Salesforce agents",
4
- "version": "1.27.6",
4
+ "version": "1.28.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
+ "enableO11y": true,
8
+ "o11yUploadEndpoint": "https://794testsite.my.site.com/byolwr/webruntime/log/metrics",
7
9
  "dependencies": {
8
10
  "@inquirer/core": "^10.3.2",
9
11
  "@inquirer/prompts": "^7.10.1",
10
12
  "@oclif/core": "^4",
11
13
  "@oclif/multi-stage-output": "^0.8.29",
12
- "@salesforce/agents": "^0.22.1",
13
- "@salesforce/core": "^8.24.3",
14
+ "@salesforce/agents": "^0.22.6",
15
+ "@salesforce/core": "^8.25.1",
14
16
  "@salesforce/kit": "^3.2.4",
15
17
  "@salesforce/sf-plugins-core": "^12.2.6",
16
18
  "@salesforce/source-deploy-retrieve": "^12.31.10",
17
- "@salesforce/types": "^1.5.0",
19
+ "@salesforce/types": "^1.6.0",
18
20
  "ansis": "^3.3.2",
19
21
  "fast-xml-parser": "^5.3.4",
20
22
  "glob": "^11.0.3",
@@ -237,7 +239,7 @@
237
239
  "exports": "./lib/index.js",
238
240
  "type": "module",
239
241
  "sfdx": {
240
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.6.crt",
241
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.6.sig"
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"
242
244
  }
243
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
+ }