@salesforce/plugin-agent 1.20.11 → 1.20.12-preview.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/oclif.lock CHANGED
@@ -561,7 +561,7 @@
561
561
  "@smithy/types" "^4.2.0"
562
562
  tslib "^2.6.2"
563
563
 
564
- "@aws-sdk/types@3.775.0":
564
+ "@aws-sdk/types@3.775.0", "@aws-sdk/types@^3.222.0":
565
565
  version "3.775.0"
566
566
  resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.775.0.tgz#09863a9e68c080947db7c3d226d1c56b8f0f5150"
567
567
  integrity sha512-ZoGKwa4C9fC9Av6bdfqcW6Ix5ot05F/S4VxWR2nHuMv7hzfmAjTOcUiWT7UR4hM/U0whf84VhDtXN/DWAk52KA==
@@ -569,14 +569,6 @@
569
569
  "@smithy/types" "^4.2.0"
570
570
  tslib "^2.6.2"
571
571
 
572
- "@aws-sdk/types@^3.222.0":
573
- version "3.734.0"
574
- resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.734.0.tgz#af5e620b0e761918282aa1c8e53cac6091d169a2"
575
- integrity sha512-o11tSPTT70nAkGV1fN9wm/hAIiLPyWX6SuGf+9JyTp7S/rC2cFWhR26MvA69nplcjNaXVzB0f+QFrLXXjOqCrg==
576
- dependencies:
577
- "@smithy/types" "^4.1.0"
578
- tslib "^2.6.2"
579
-
580
572
  "@aws-sdk/util-arn-parser@3.723.0":
581
573
  version "3.723.0"
582
574
  resolved "https://registry.yarnpkg.com/@aws-sdk/util-arn-parser/-/util-arn-parser-3.723.0.tgz#e9bff2b13918a92d60e0012101dad60ed7db292c"
@@ -992,17 +984,6 @@
992
984
  resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz#4a2868d75d6d6963e423bcf90b7fd1be343409d3"
993
985
  integrity sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==
994
986
 
995
- "@inquirer/checkbox@^4.1.2":
996
- version "4.1.2"
997
- resolved "https://registry.yarnpkg.com/@inquirer/checkbox/-/checkbox-4.1.2.tgz#a12079f6aff68253392a1955d1a202eb9ac2e207"
998
- integrity sha512-PL9ixC5YsPXzXhAZFUPmkXGxfgjkdfZdPEPPmt4kFwQ4LBMDG9n/nHXYRGGZSKZJs+d1sGKWgS2GiPzVRKUdtQ==
999
- dependencies:
1000
- "@inquirer/core" "^10.1.7"
1001
- "@inquirer/figures" "^1.0.10"
1002
- "@inquirer/type" "^3.0.4"
1003
- ansi-escapes "^4.3.2"
1004
- yoctocolors-cjs "^2.1.2"
1005
-
1006
987
  "@inquirer/checkbox@^4.1.5":
1007
988
  version "4.1.5"
1008
989
  resolved "https://registry.yarnpkg.com/@inquirer/checkbox/-/checkbox-4.1.5.tgz#891bb32ca98eb6ee2889f71d79722705e2241161"
@@ -1022,7 +1003,7 @@
1022
1003
  "@inquirer/core" "^9.1.0"
1023
1004
  "@inquirer/type" "^1.5.3"
1024
1005
 
1025
- "@inquirer/confirm@^5.1.6", "@inquirer/confirm@^5.1.9":
1006
+ "@inquirer/confirm@^5.1.9":
1026
1007
  version "5.1.9"
1027
1008
  resolved "https://registry.yarnpkg.com/@inquirer/confirm/-/confirm-5.1.9.tgz#c858b6a3decb458241ec36ca9a9117477338076a"
1028
1009
  integrity sha512-NgQCnHqFTjF7Ys2fsqK2WtnA8X1kHyInyG+nMIuHowVTIgIuS10T4AznI/PvbqSpJqjCUqNBlKGh1v3bwLFL4w==
@@ -1030,7 +1011,7 @@
1030
1011
  "@inquirer/core" "^10.1.10"
1031
1012
  "@inquirer/type" "^3.0.6"
1032
1013
 
1033
- "@inquirer/core@^10.1.10":
1014
+ "@inquirer/core@^10.1.10", "@inquirer/core@^10.1.6":
1034
1015
  version "10.1.10"
1035
1016
  resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-10.1.10.tgz#222a374e3768536a1eb0adf7516c436d5f4a291d"
1036
1017
  integrity sha512-roDaKeY1PYY0aCqhRmXihrHjoSW2A00pV3Ke5fTpMCkzcGF64R8e0lw3dK+eLEHwS4vB5RnW1wuQmvzoRul8Mw==
@@ -1044,20 +1025,6 @@
1044
1025
  wrap-ansi "^6.2.0"
1045
1026
  yoctocolors-cjs "^2.1.2"
1046
1027
 
1047
- "@inquirer/core@^10.1.6", "@inquirer/core@^10.1.7":
1048
- version "10.1.7"
1049
- resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-10.1.7.tgz#04260b59e0343e86f76da0a4e1fbe4975aca03ca"
1050
- integrity sha512-AA9CQhlrt6ZgiSy6qoAigiA1izOa751ugX6ioSjqgJ+/Gd+tEN/TORk5sUYNjXuHWfW0r1n/a6ak4u/NqHHrtA==
1051
- dependencies:
1052
- "@inquirer/figures" "^1.0.10"
1053
- "@inquirer/type" "^3.0.4"
1054
- ansi-escapes "^4.3.2"
1055
- cli-width "^4.1.0"
1056
- mute-stream "^2.0.0"
1057
- signal-exit "^4.1.0"
1058
- wrap-ansi "^6.2.0"
1059
- yoctocolors-cjs "^2.1.2"
1060
-
1061
1028
  "@inquirer/core@^3.1.1":
1062
1029
  version "3.1.2"
1063
1030
  resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-3.1.2.tgz#d9691e6ffae85935685641550b8370ab7e599caa"
@@ -1104,15 +1071,6 @@
1104
1071
  "@inquirer/type" "^3.0.6"
1105
1072
  external-editor "^3.1.0"
1106
1073
 
1107
- "@inquirer/editor@^4.2.7":
1108
- version "4.2.7"
1109
- resolved "https://registry.yarnpkg.com/@inquirer/editor/-/editor-4.2.7.tgz#61cb58486b125a9cbfc88a9424bf1681bb7dbd2d"
1110
- integrity sha512-gktCSQtnSZHaBytkJKMKEuswSk2cDBuXX5rxGFv306mwHfBPjg5UAldw9zWGoEyvA9KpRDkeM4jfrx0rXn0GyA==
1111
- dependencies:
1112
- "@inquirer/core" "^10.1.7"
1113
- "@inquirer/type" "^3.0.4"
1114
- external-editor "^3.1.0"
1115
-
1116
1074
  "@inquirer/expand@^4.0.12":
1117
1075
  version "4.0.12"
1118
1076
  resolved "https://registry.yarnpkg.com/@inquirer/expand/-/expand-4.0.12.tgz#1e4554f509a435f966e2b91395a503d77df35c17"
@@ -1122,21 +1080,7 @@
1122
1080
  "@inquirer/type" "^3.0.6"
1123
1081
  yoctocolors-cjs "^2.1.2"
1124
1082
 
1125
- "@inquirer/expand@^4.0.9":
1126
- version "4.0.9"
1127
- resolved "https://registry.yarnpkg.com/@inquirer/expand/-/expand-4.0.9.tgz#935947192dad0d07a537664ba6a527b9ced44be2"
1128
- integrity sha512-Xxt6nhomWTAmuSX61kVgglLjMEFGa+7+F6UUtdEUeg7fg4r9vaFttUUKrtkViYYrQBA5Ia1tkOJj2koP9BuLig==
1129
- dependencies:
1130
- "@inquirer/core" "^10.1.7"
1131
- "@inquirer/type" "^3.0.4"
1132
- yoctocolors-cjs "^2.1.2"
1133
-
1134
- "@inquirer/figures@^1.0.10", "@inquirer/figures@^1.0.5", "@inquirer/figures@^1.0.6":
1135
- version "1.0.10"
1136
- resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.10.tgz#e3676a51c9c51aaabcd6ba18a28e82b98417db37"
1137
- integrity sha512-Ey6176gZmeqZuY/W/nZiUyvmb1/qInjcpiZjXWi6nON+nxJpD1bxtSoBxNliGISae32n6OwbY+TSXPZ1CfS4bw==
1138
-
1139
- "@inquirer/figures@^1.0.11":
1083
+ "@inquirer/figures@^1.0.11", "@inquirer/figures@^1.0.5", "@inquirer/figures@^1.0.6":
1140
1084
  version "1.0.11"
1141
1085
  resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.11.tgz#4744e6db95288fea1dead779554859710a959a21"
1142
1086
  integrity sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==
@@ -1149,7 +1093,7 @@
1149
1093
  "@inquirer/core" "^9.1.0"
1150
1094
  "@inquirer/type" "^1.5.3"
1151
1095
 
1152
- "@inquirer/input@^4.1.6", "@inquirer/input@^4.1.9":
1096
+ "@inquirer/input@^4.1.9":
1153
1097
  version "4.1.9"
1154
1098
  resolved "https://registry.yarnpkg.com/@inquirer/input/-/input-4.1.9.tgz#e93888d48c89bdb7f8e10bdd94572b636375749a"
1155
1099
  integrity sha512-mshNG24Ij5KqsQtOZMgj5TwEjIf+F2HOESk6bjMwGWgcH5UBe8UoljwzNFHqdMbGYbgAf6v2wU/X9CAdKJzgOA==
@@ -1165,14 +1109,6 @@
1165
1109
  "@inquirer/core" "^10.1.10"
1166
1110
  "@inquirer/type" "^3.0.6"
1167
1111
 
1168
- "@inquirer/number@^3.0.9":
1169
- version "3.0.9"
1170
- resolved "https://registry.yarnpkg.com/@inquirer/number/-/number-3.0.9.tgz#23dae9e31de368e18c4ec2543a9f006e4bb4a98d"
1171
- integrity sha512-iN2xZvH3tyIYXLXBvlVh0npk1q/aVuKXZo5hj+K3W3D4ngAEq/DkLpofRzx6oebTUhBvOgryZ+rMV0yImKnG3w==
1172
- dependencies:
1173
- "@inquirer/core" "^10.1.7"
1174
- "@inquirer/type" "^3.0.4"
1175
-
1176
1112
  "@inquirer/password@^2.2.0":
1177
1113
  version "2.2.0"
1178
1114
  resolved "https://registry.yarnpkg.com/@inquirer/password/-/password-2.2.0.tgz#0b6f26336c259c8a9e5f5a3f2e1a761564f764ba"
@@ -1191,32 +1127,7 @@
1191
1127
  "@inquirer/type" "^3.0.6"
1192
1128
  ansi-escapes "^4.3.2"
1193
1129
 
1194
- "@inquirer/password@^4.0.9":
1195
- version "4.0.9"
1196
- resolved "https://registry.yarnpkg.com/@inquirer/password/-/password-4.0.9.tgz#1a7d14a14bd2e54294d7fa5cc9fa6da99315149c"
1197
- integrity sha512-xBEoOw1XKb0rIN208YU7wM7oJEHhIYkfG7LpTJAEW913GZeaoQerzf5U/LSHI45EVvjAdgNXmXgH51cUXKZcJQ==
1198
- dependencies:
1199
- "@inquirer/core" "^10.1.7"
1200
- "@inquirer/type" "^3.0.4"
1201
- ansi-escapes "^4.3.2"
1202
-
1203
- "@inquirer/prompts@^7.2.0":
1204
- version "7.3.2"
1205
- resolved "https://registry.yarnpkg.com/@inquirer/prompts/-/prompts-7.3.2.tgz#ad0879eb3bc783c19b78c420e5eeb18a09fc9b47"
1206
- integrity sha512-G1ytyOoHh5BphmEBxSwALin3n1KGNYB6yImbICcRQdzXfOGbuJ9Jske/Of5Sebk339NSGGNfUshnzK8YWkTPsQ==
1207
- dependencies:
1208
- "@inquirer/checkbox" "^4.1.2"
1209
- "@inquirer/confirm" "^5.1.6"
1210
- "@inquirer/editor" "^4.2.7"
1211
- "@inquirer/expand" "^4.0.9"
1212
- "@inquirer/input" "^4.1.6"
1213
- "@inquirer/number" "^3.0.9"
1214
- "@inquirer/password" "^4.0.9"
1215
- "@inquirer/rawlist" "^4.0.9"
1216
- "@inquirer/search" "^3.0.9"
1217
- "@inquirer/select" "^4.0.9"
1218
-
1219
- "@inquirer/prompts@^7.4.1":
1130
+ "@inquirer/prompts@^7.2.0", "@inquirer/prompts@^7.4.1":
1220
1131
  version "7.4.1"
1221
1132
  resolved "https://registry.yarnpkg.com/@inquirer/prompts/-/prompts-7.4.1.tgz#b9bfbba7384305f1d632aca1b800b2b3c22fbcbf"
1222
1133
  integrity sha512-UlmM5FVOZF0gpoe1PT/jN4vk8JmpIWBlMvTL8M+hlvPmzN89K6z03+IFmyeu/oFCenwdwHDr2gky7nIGSEVvlA==
@@ -1241,15 +1152,6 @@
1241
1152
  "@inquirer/type" "^3.0.6"
1242
1153
  yoctocolors-cjs "^2.1.2"
1243
1154
 
1244
- "@inquirer/rawlist@^4.0.9":
1245
- version "4.0.9"
1246
- resolved "https://registry.yarnpkg.com/@inquirer/rawlist/-/rawlist-4.0.9.tgz#c5f8253c87ad48713e0e8b34274fdd1aa8b08d2c"
1247
- integrity sha512-+5t6ebehKqgoxV8fXwE49HkSF2Rc9ijNiVGEQZwvbMI61/Q5RcD+jWD6Gs1tKdz5lkI8GRBL31iO0HjGK1bv+A==
1248
- dependencies:
1249
- "@inquirer/core" "^10.1.7"
1250
- "@inquirer/type" "^3.0.4"
1251
- yoctocolors-cjs "^2.1.2"
1252
-
1253
1155
  "@inquirer/search@^3.0.12":
1254
1156
  version "3.0.12"
1255
1157
  resolved "https://registry.yarnpkg.com/@inquirer/search/-/search-3.0.12.tgz#e86f91ea598ccb39caf9a17762b839a9b950e16d"
@@ -1260,16 +1162,6 @@
1260
1162
  "@inquirer/type" "^3.0.6"
1261
1163
  yoctocolors-cjs "^2.1.2"
1262
1164
 
1263
- "@inquirer/search@^3.0.9":
1264
- version "3.0.9"
1265
- resolved "https://registry.yarnpkg.com/@inquirer/search/-/search-3.0.9.tgz#00848c93ce86dcd24989a72dabfd8aeb34d2829b"
1266
- integrity sha512-DWmKztkYo9CvldGBaRMr0ETUHgR86zE6sPDVOHsqz4ISe9o1LuiWfgJk+2r75acFclA93J/lqzhT0dTjCzHuoA==
1267
- dependencies:
1268
- "@inquirer/core" "^10.1.7"
1269
- "@inquirer/figures" "^1.0.10"
1270
- "@inquirer/type" "^3.0.4"
1271
- yoctocolors-cjs "^2.1.2"
1272
-
1273
1165
  "@inquirer/select@^2.5.0":
1274
1166
  version "2.5.0"
1275
1167
  resolved "https://registry.yarnpkg.com/@inquirer/select/-/select-2.5.0.tgz#345c6908ecfaeef3d84ddd2f9feb2f487c558efb"
@@ -1281,7 +1173,7 @@
1281
1173
  ansi-escapes "^4.3.2"
1282
1174
  yoctocolors-cjs "^2.1.2"
1283
1175
 
1284
- "@inquirer/select@^4.0.9", "@inquirer/select@^4.1.1":
1176
+ "@inquirer/select@^4.1.1":
1285
1177
  version "4.1.1"
1286
1178
  resolved "https://registry.yarnpkg.com/@inquirer/select/-/select-4.1.1.tgz#0496b913514149171cf6351f0acb6d4243a39fdf"
1287
1179
  integrity sha512-IUXzzTKVdiVNMA+2yUvPxWsSgOG4kfX93jOM4Zb5FgujeInotv5SPIJVeXQ+fO4xu7tW8VowFhdG5JRmmCyQ1Q==
@@ -1306,11 +1198,6 @@
1306
1198
  dependencies:
1307
1199
  mute-stream "^1.0.0"
1308
1200
 
1309
- "@inquirer/type@^3.0.4":
1310
- version "3.0.4"
1311
- resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.4.tgz#fa5f9e91a0abf3c9e93d3e1990ecb891d8195cf2"
1312
- integrity sha512-2MNFrDY8jkFYc9Il9DgLsHhMzuHnOYM1+CUYVWbzu9oT0hC7V7EcYvdCKeoll/Fcci04A+ERZ9wcc7cQ8lTkIA==
1313
-
1314
1201
  "@inquirer/type@^3.0.6":
1315
1202
  version "3.0.6"
1316
1203
  resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.6.tgz#2500e435fc2014c5250eec3279f42b70b64089bd"
@@ -1556,10 +1443,10 @@
1556
1443
  resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8"
1557
1444
  integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==
1558
1445
 
1559
- "@salesforce/agents@^0.14.6":
1560
- version "0.14.6"
1561
- resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.14.6.tgz#8f72703568f1efa424de27dad637afe5913fcdc9"
1562
- integrity sha512-onSxxsqraLSf6H21KZ2mled//SAt8dzxAxQa9neCqq6JIdL8JBZNaXFzGdyi9f6V8q+EvVqL3lVQ+PSrWGS9BQ==
1446
+ "@salesforce/agents@0.14.7-preview.1":
1447
+ version "0.14.7-preview.1"
1448
+ resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.14.7-preview.1.tgz#edc4bd70aa83710433f87e49a1eba972d07d887a"
1449
+ integrity sha512-oz6DNeGdbU3NnR+Vnny2zG3AS7mmy0ccM4EC0RTA0LR+5NWAgCa+T3SX0K6JXzei332DsOFtKn+CoscdWJl8rw==
1563
1450
  dependencies:
1564
1451
  "@salesforce/core" "^8.9.1"
1565
1452
  "@salesforce/kit" "^3.2.3"
@@ -2188,13 +2075,6 @@
2188
2075
  "@smithy/util-stream" "^4.2.0"
2189
2076
  tslib "^2.6.2"
2190
2077
 
2191
- "@smithy/types@^4.1.0":
2192
- version "4.1.0"
2193
- resolved "https://registry.yarnpkg.com/@smithy/types/-/types-4.1.0.tgz#19de0b6087bccdd4182a334eb5d3d2629699370f"
2194
- integrity sha512-enhjdwp4D7CXmwLtD6zbcDMbo6/T6WtuuKCY49Xxc6OMOmUWlBEBDREsxxgV2LIdeQPW756+f97GzcgAwp3iLw==
2195
- dependencies:
2196
- tslib "^2.6.2"
2197
-
2198
2078
  "@smithy/types@^4.2.0":
2199
2079
  version "4.2.0"
2200
2080
  resolved "https://registry.yarnpkg.com/@smithy/types/-/types-4.2.0.tgz#e7998984cc54b1acbc32e6d4cf982c712e3d26b6"
@@ -105,7 +105,7 @@
105
105
  "agent:preview": {
106
106
  "aliases": [],
107
107
  "args": {},
108
- "description": "Use this command to have a natural language conversation with an active agent in your org, as if you were an actual user. The interface is simple: in the \"Start typing...\" prompt, enter a statement, question, or command; when you're done, enter Return. Your utterance is posted on the right along with a timestamp. The agent then responds on the left. To exit the conversation, hit ESC or Control+C.\n\nThis command is useful to test if the agent responds to your utterances as you expect. For example, you can test that the agent uses a particular topic when asked a question, and then whether it invokes the correct action associated with that topic. This command is the CLI-equivalent of the Conversation Preview panel in your org's Agent Builder UI.\n\nWhen the session concludes, the command asks if you want to save the API responses and chat transcripts. By default, the files are saved to the \"./temp/agent-preview\" directory. Specify a new default directory by setting the environment variable \"SF_AGENT_PREVIEW_OUTPUT_DIR\" to the directory. Or you can pass the directory to the --output-dir flag.\n\nFind the agent's API name in its main details page in your org's Agent page in Setup.\n\nBefore you use this command, you must complete these steps:\n-----------------------------------------------------------\n\n1. Create a connected app in your org as described in the \"Create a Connected App\" section here: https://developer.salesforce.com/docs/einstein/genai/guide/agent-api-get-started.html#create-a-connected-app. Do these four additional steps:\n\n a. When specifying the connected app's Callback URL, add this second callback URL on a new line: \"http://localhost:1717/OauthRedirect\".\n\n b. When adding the scopes to the connected app, add \"Manage user data via Web browsers (web)\".\n\n c. Ensure that the \"Require Secret for Web Server Flow\" option is not selected.\n\n d. Make note of the user that you specified as the \"Run As\" user when updating the Client Credentials Flow section.\n\n2. Add the connected app to your agent as described in the \"Add Connected App to Agent\" section here: https://developer.salesforce.com/docs/einstein/genai/guide/agent-api-get-started.html#add-connected-app-to-agent.\n\n3. Copy the consumer key from your connected app as described in the \"Obtain Credentials\" section here: https://developer.salesforce.com/docs/einstein/genai/guide/agent-api-get-started.html#obtain-credentials.\n\n4. Set the \"SFDX_AUTH_SCOPES\" environment variable to \"refresh_token sfap_api chatbot_api web api\". This step ensures that you get the specific OAuth scopes required by this command.\n\n5. Using the username of the user you specified as the \"Run As\" user above, authorize your org using the web server flow, as described in this document: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_web_flow.htm.\n\n IMPORTANT: You must use the \"--client-id <CONNECTED-APP-CONSUMER-KEY>\" flag of \"org login web\", where CONNECTED-APP-CONSUMER-KEY is the consumer key you previously copied. This step ensures that the \"org login web\" command uses your custom connected app, and not the default CLI connected app.\n\n Press Enter to skip sharing the client secret.\n\n6. When you run this command to interact with an agent, specify the username you authorized in the preceding step with the --connected-app-user (-a) flag.",
108
+ "description": "Use this command to have a natural language conversation with an active agent in your org, as if you were an actual user. The interface is simple: in the \"Start typing...\" prompt, enter a statement, question, or command; when you're done, enter Return. Your utterance is posted on the right along with a timestamp. The agent then responds on the left. To exit the conversation, hit ESC or Control+C.\n\nThis command is useful to test if the agent responds to your utterances as you expect. For example, you can test that the agent uses a particular topic when asked a question, and then whether it invokes the correct action associated with that topic. This command is the CLI-equivalent of the Conversation Preview panel in your org's Agent Builder UI.\n\nWhen the session concludes, the command asks if you want to save the API responses and chat transcripts. By default, the files are saved to the \"./temp/agent-preview\" directory. Specify a new default directory by setting the environment variable \"SF_AGENT_PREVIEW_OUTPUT_DIR\" to the directory. Or you can pass the directory to the --output-dir flag.\n\nFind the agent's API name in its main details page in your org's Agent page in Setup.\n\nBefore you use this command, you must complete these steps:\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n1. Create a connected app in your org as described in the \"Create a Connected App\" section here: https://developer.salesforce.com/docs/einstein/genai/guide/agent-api-get-started.html#create-a-connected-app. Do these four additional steps:\n\n a. When specifying the connected app's Callback URL, add this second callback URL on a new line: \"http://localhost:1717/OauthRedirect\".\n\n b. When adding the scopes to the connected app, add \"Manage user data via Web browsers (web)\".\n\n c. Ensure that the \"Require Secret for Web Server Flow\" option is not selected.\n\n d. Make note of the user that you specified as the \"Run As\" user when updating the Client Credentials Flow section.\n\n2. Add the connected app to your agent as described in the \"Add Connected App to Agent\" section here: https://developer.salesforce.com/docs/einstein/genai/guide/agent-api-get-started.html#add-connected-app-to-agent.\n\n3. Copy the consumer key from your connected app as described in the \"Obtain Credentials\" section here: https://developer.salesforce.com/docs/einstein/genai/guide/agent-api-get-started.html#obtain-credentials.\n\n4. Set the \"SFDX_AUTH_SCOPES\" environment variable to \"refresh_token sfap_api chatbot_api web api\". This step ensures that you get the specific OAuth scopes required by this command.\n\n5. Using the username of the user you specified as the \"Run As\" user above, authorize your org using the web server flow, as described in this document: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_web_flow.htm.\n\n IMPORTANT: You must use the \"--client-id <CONNECTED-APP-CONSUMER-KEY>\" flag of \"org login web\", where CONNECTED-APP-CONSUMER-KEY is the consumer key you previously copied. This step ensures that the \"org login web\" command uses your custom connected app, and not the default CLI connected app.\n\n Press Enter to skip sharing the client secret.\n\n6. When you run this command to interact with an agent, specify the username you authorized in the preceding step with the --connected-app-user (-a) flag.",
109
109
  "examples": [
110
110
  "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",
111
111
  "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\""
@@ -1112,5 +1112,5 @@
1112
1112
  ]
1113
1113
  }
1114
1114
  },
1115
- "version": "1.20.11"
1115
+ "version": "1.20.12-preview.1"
1116
1116
  }
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.20.11",
4
+ "version": "1.20.12-preview.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -9,7 +9,7 @@
9
9
  "@inquirer/prompts": "^7.2.0",
10
10
  "@oclif/core": "^4",
11
11
  "@oclif/multi-stage-output": "^0.7.12",
12
- "@salesforce/agents": "^0.14.6",
12
+ "@salesforce/agents": "0.14.7-preview.1",
13
13
  "@salesforce/core": "^8.9.1",
14
14
  "@salesforce/kit": "^3.2.3",
15
15
  "@salesforce/sf-plugins-core": "^12.2.0",
@@ -229,7 +229,7 @@
229
229
  "exports": "./lib/index.js",
230
230
  "type": "module",
231
231
  "sfdx": {
232
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.20.11.crt",
233
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.20.11.sig"
232
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.20.12-preview.1.crt",
233
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.20.12-preview.1.sig"
234
234
  }
235
235
  }