@salesforce/plugin-agent 1.15.1-dev.3 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -31
- package/lib/commands/agent/create.js +2 -2
- package/lib/commands/agent/create.js.map +1 -1
- package/lib/commands/agent/generate/test-spec.d.ts +0 -5
- package/lib/commands/agent/generate/test-spec.js +78 -196
- package/lib/commands/agent/generate/test-spec.js.map +1 -1
- package/lib/commands/agent/test/create.d.ts +2 -3
- package/lib/commands/agent/test/create.js +21 -80
- package/lib/commands/agent/test/create.js.map +1 -1
- package/lib/flags.d.ts +0 -1
- package/lib/flags.js +0 -31
- package/lib/flags.js.map +1 -1
- package/lib/handleTestResults.js +21 -2
- package/lib/handleTestResults.js.map +1 -1
- package/lib/read-dir.d.ts +1 -0
- package/lib/read-dir.js +16 -0
- package/lib/read-dir.js.map +1 -0
- package/messages/agent.generate.test-spec.md +0 -16
- package/messages/agent.test.create.md +8 -18
- package/npm-shrinkwrap.json +30 -522
- package/oclif.lock +11 -115
- package/oclif.manifest.json +10 -35
- package/package.json +5 -7
- package/lib/yes-no-cancel.d.ts +0 -10
- package/lib/yes-no-cancel.js +0 -60
- package/lib/yes-no-cancel.js.map +0 -1
package/oclif.lock
CHANGED
|
@@ -1095,39 +1095,6 @@
|
|
|
1095
1095
|
wrap-ansi "^6.2.0"
|
|
1096
1096
|
yoctocolors-cjs "^2.1.2"
|
|
1097
1097
|
|
|
1098
|
-
"@inquirer/core@^10.1.6":
|
|
1099
|
-
version "10.1.6"
|
|
1100
|
-
resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-10.1.6.tgz#2a92a219cb48c81453e145a5040d0e04f7df1aa2"
|
|
1101
|
-
integrity sha512-Bwh/Zk6URrHwZnSSzAZAKH7YgGYi0xICIBDFOqBQoXNNAzBHw/bgXgLmChfp+GyR3PnChcTbiCTZGC6YJNJkMA==
|
|
1102
|
-
dependencies:
|
|
1103
|
-
"@inquirer/figures" "^1.0.10"
|
|
1104
|
-
"@inquirer/type" "^3.0.4"
|
|
1105
|
-
ansi-escapes "^4.3.2"
|
|
1106
|
-
cli-width "^4.1.0"
|
|
1107
|
-
mute-stream "^2.0.0"
|
|
1108
|
-
signal-exit "^4.1.0"
|
|
1109
|
-
wrap-ansi "^6.2.0"
|
|
1110
|
-
yoctocolors-cjs "^2.1.2"
|
|
1111
|
-
|
|
1112
|
-
"@inquirer/core@^3.1.1":
|
|
1113
|
-
version "3.1.2"
|
|
1114
|
-
resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-3.1.2.tgz#d9691e6ffae85935685641550b8370ab7e599caa"
|
|
1115
|
-
integrity sha512-lR2GaqBkp42Ew9BOAOqf2pSp+ymVES1qN8OC90WWh45yeoYLl0Ty1GyCxmkKqBJtq/+Ea1MF12AdFcZcpRNFsw==
|
|
1116
|
-
dependencies:
|
|
1117
|
-
"@inquirer/type" "^1.1.2"
|
|
1118
|
-
"@types/mute-stream" "^0.0.1"
|
|
1119
|
-
"@types/node" "^20.4.8"
|
|
1120
|
-
"@types/wrap-ansi" "^3.0.0"
|
|
1121
|
-
ansi-escapes "^4.3.2"
|
|
1122
|
-
chalk "^4.1.2"
|
|
1123
|
-
cli-spinners "^2.9.0"
|
|
1124
|
-
cli-width "^4.1.0"
|
|
1125
|
-
figures "^3.2.0"
|
|
1126
|
-
mute-stream "^1.0.0"
|
|
1127
|
-
run-async "^3.0.0"
|
|
1128
|
-
strip-ansi "^6.0.1"
|
|
1129
|
-
wrap-ansi "^6.2.0"
|
|
1130
|
-
|
|
1131
1098
|
"@inquirer/core@^9.0.8", "@inquirer/core@^9.1.0":
|
|
1132
1099
|
version "9.1.0"
|
|
1133
1100
|
resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-9.1.0.tgz#158b82dc44564a1abd0ce14723d50c3efa0634a2"
|
|
@@ -1165,11 +1132,6 @@
|
|
|
1165
1132
|
"@inquirer/type" "^3.0.2"
|
|
1166
1133
|
yoctocolors-cjs "^2.1.2"
|
|
1167
1134
|
|
|
1168
|
-
"@inquirer/figures@^1.0.10":
|
|
1169
|
-
version "1.0.10"
|
|
1170
|
-
resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.10.tgz#e3676a51c9c51aaabcd6ba18a28e82b98417db37"
|
|
1171
|
-
integrity sha512-Ey6176gZmeqZuY/W/nZiUyvmb1/qInjcpiZjXWi6nON+nxJpD1bxtSoBxNliGISae32n6OwbY+TSXPZ1CfS4bw==
|
|
1172
|
-
|
|
1173
1135
|
"@inquirer/figures@^1.0.5", "@inquirer/figures@^1.0.7", "@inquirer/figures@^1.0.9":
|
|
1174
1136
|
version "1.0.9"
|
|
1175
1137
|
resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.9.tgz#9d8128f8274cde4ca009ca8547337cab3f37a4a3"
|
|
@@ -1274,13 +1236,6 @@
|
|
|
1274
1236
|
ansi-escapes "^4.3.2"
|
|
1275
1237
|
yoctocolors-cjs "^2.1.2"
|
|
1276
1238
|
|
|
1277
|
-
"@inquirer/type@^1.1.2":
|
|
1278
|
-
version "1.5.5"
|
|
1279
|
-
resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-1.5.5.tgz#303ea04ce7ad2e585b921b662b3be36ef7b4f09b"
|
|
1280
|
-
integrity sha512-MzICLu4yS7V8AA61sANROZ9vT1H3ooca5dSmI1FjZkzq7o/koMsRfQSzRtFo+F3Ao4Sf1C0bpLKejpKB/+j6MA==
|
|
1281
|
-
dependencies:
|
|
1282
|
-
mute-stream "^1.0.0"
|
|
1283
|
-
|
|
1284
1239
|
"@inquirer/type@^1.5.1", "@inquirer/type@^1.5.3":
|
|
1285
1240
|
version "1.5.3"
|
|
1286
1241
|
resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-1.5.3.tgz#220ae9f3d5ae17dd3b2ce5ffd6b48c4a30c73181"
|
|
@@ -1293,11 +1248,6 @@
|
|
|
1293
1248
|
resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.2.tgz#baff9f8d70947181deb36772cd9a5b6876d3e60c"
|
|
1294
1249
|
integrity sha512-ZhQ4TvhwHZF+lGhQ2O/rsjo80XoZR5/5qhOY3t6FJuX5XBg5Be8YzYTvaUGJnc12AUGI2nr4QSUE4PhKSigx7g==
|
|
1295
1250
|
|
|
1296
|
-
"@inquirer/type@^3.0.4":
|
|
1297
|
-
version "3.0.4"
|
|
1298
|
-
resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.4.tgz#fa5f9e91a0abf3c9e93d3e1990ecb891d8195cf2"
|
|
1299
|
-
integrity sha512-2MNFrDY8jkFYc9Il9DgLsHhMzuHnOYM1+CUYVWbzu9oT0hC7V7EcYvdCKeoll/Fcci04A+ERZ9wcc7cQ8lTkIA==
|
|
1300
|
-
|
|
1301
1251
|
"@isaacs/cliui@^8.0.2":
|
|
1302
1252
|
version "8.0.2"
|
|
1303
1253
|
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
|
|
@@ -1512,14 +1462,14 @@
|
|
|
1512
1462
|
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
|
|
1513
1463
|
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
|
|
1514
1464
|
|
|
1515
|
-
"@salesforce/agents@0.9.
|
|
1516
|
-
version "0.9.
|
|
1517
|
-
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.9.
|
|
1518
|
-
integrity sha512-
|
|
1465
|
+
"@salesforce/agents@0.9.6":
|
|
1466
|
+
version "0.9.6"
|
|
1467
|
+
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.9.6.tgz#0ebf630e46bebf04bad96c2e8870ad8d83b438ef"
|
|
1468
|
+
integrity sha512-LxHBxLaTvhYQM5MPN2SwUxrx8gKZ6WTZ4IbVYlA1cAtIhToj3pcpLIgwBqr2iEYrtZjUMq0uWLThXsmVnzbPRA==
|
|
1519
1469
|
dependencies:
|
|
1520
1470
|
"@salesforce/core" "^8.8.2"
|
|
1521
1471
|
"@salesforce/kit" "^3.2.3"
|
|
1522
|
-
"@salesforce/source-deploy-retrieve" "^12.14.
|
|
1472
|
+
"@salesforce/source-deploy-retrieve" "^12.14.1"
|
|
1523
1473
|
fast-xml-parser "^4.5.1"
|
|
1524
1474
|
nock "^13.5.6"
|
|
1525
1475
|
yaml "^2.7.0"
|
|
@@ -1686,10 +1636,10 @@
|
|
|
1686
1636
|
proxy-agent "^6.4.0"
|
|
1687
1637
|
yaml "^2.6.1"
|
|
1688
1638
|
|
|
1689
|
-
"@salesforce/source-deploy-retrieve@^12.14.
|
|
1690
|
-
version "12.14.
|
|
1691
|
-
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.14.
|
|
1692
|
-
integrity sha512-
|
|
1639
|
+
"@salesforce/source-deploy-retrieve@^12.14.1":
|
|
1640
|
+
version "12.14.1"
|
|
1641
|
+
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.14.1.tgz#9067388b1eb9fadda7e6ccd894e9d1bb0e8407d5"
|
|
1642
|
+
integrity sha512-8POp6tqoeciDFAv7a40LG21aHZ2XGHvX0/ySqcjcAVhTVhVhcP0EpC+qO+SSKjB6Ocf0/6iXMo5ciU2Eq32ydw==
|
|
1693
1643
|
dependencies:
|
|
1694
1644
|
"@salesforce/core" "^8.8.2"
|
|
1695
1645
|
"@salesforce/kit" "^3.2.3"
|
|
@@ -2392,13 +2342,6 @@
|
|
|
2392
2342
|
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.7.tgz#4c620090f28ca7f905a94b706f74dc5b57b44f2f"
|
|
2393
2343
|
integrity sha512-GN8yJ1mNTcFcah/wKEFIJckJx9iJLoMSzWcfRRuxz/Jk+U6KQNnml+etbtxFK8lPjzOw3zp4Ha/kjSst9fsHYw==
|
|
2394
2344
|
|
|
2395
|
-
"@types/mute-stream@^0.0.1":
|
|
2396
|
-
version "0.0.1"
|
|
2397
|
-
resolved "https://registry.yarnpkg.com/@types/mute-stream/-/mute-stream-0.0.1.tgz#8ec7d16d51e2ceb054d8be0226250169d17af5b2"
|
|
2398
|
-
integrity sha512-0yQLzYhCqGz7CQPE3iDmYjhb7KMBFOP+tBkyw+/Y2YyDI5wpS7itXXxneN1zSsUwWx3Ji6YiVYrhAnpQGS/vkw==
|
|
2399
|
-
dependencies:
|
|
2400
|
-
"@types/node" "*"
|
|
2401
|
-
|
|
2402
2345
|
"@types/mute-stream@^0.0.4":
|
|
2403
2346
|
version "0.0.4"
|
|
2404
2347
|
resolved "https://registry.yarnpkg.com/@types/mute-stream/-/mute-stream-0.0.4.tgz#77208e56a08767af6c5e1237be8888e2f255c478"
|
|
@@ -2420,13 +2363,6 @@
|
|
|
2420
2363
|
dependencies:
|
|
2421
2364
|
undici-types "~5.26.4"
|
|
2422
2365
|
|
|
2423
|
-
"@types/node@^20.4.8":
|
|
2424
|
-
version "20.17.17"
|
|
2425
|
-
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.17.17.tgz#5cea2af2e271313742c14f418eaf5dcfa8ae2e3a"
|
|
2426
|
-
integrity sha512-/WndGO4kIfMicEQLTi/mDANUu/iVUhT7KboZPdEqqHQ4aTS+3qT3U5gIqWDFV+XouorjfgGqvKILJeHhuQgFYg==
|
|
2427
|
-
dependencies:
|
|
2428
|
-
undici-types "~6.19.2"
|
|
2429
|
-
|
|
2430
2366
|
"@types/normalize-package-data@^2.4.0":
|
|
2431
2367
|
version "2.4.1"
|
|
2432
2368
|
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301"
|
|
@@ -3176,7 +3112,7 @@ chalk@^2.4.2:
|
|
|
3176
3112
|
escape-string-regexp "^1.0.5"
|
|
3177
3113
|
supports-color "^5.3.0"
|
|
3178
3114
|
|
|
3179
|
-
chalk@^4, chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0
|
|
3115
|
+
chalk@^4, chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0:
|
|
3180
3116
|
version "4.1.2"
|
|
3181
3117
|
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
|
|
3182
3118
|
integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
|
|
@@ -3282,7 +3218,7 @@ cli-progress@^3.12.0:
|
|
|
3282
3218
|
dependencies:
|
|
3283
3219
|
string-width "^4.2.3"
|
|
3284
3220
|
|
|
3285
|
-
cli-spinners@^2, cli-spinners@^2.9.
|
|
3221
|
+
cli-spinners@^2, cli-spinners@^2.9.2:
|
|
3286
3222
|
version "2.9.2"
|
|
3287
3223
|
resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.9.2.tgz#1773a8f4b9c4d6ac31563df53b3fc1d79462fe41"
|
|
3288
3224
|
integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==
|
|
@@ -3955,11 +3891,6 @@ escape-string-regexp@^2.0.0:
|
|
|
3955
3891
|
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
|
|
3956
3892
|
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
|
|
3957
3893
|
|
|
3958
|
-
escape-string-regexp@^5.0.0:
|
|
3959
|
-
version "5.0.0"
|
|
3960
|
-
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8"
|
|
3961
|
-
integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==
|
|
3962
|
-
|
|
3963
3894
|
escodegen@^2.1.0:
|
|
3964
3895
|
version "2.1.0"
|
|
3965
3896
|
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.1.0.tgz#ba93bbb7a43986d29d6041f99f5262da773e2e17"
|
|
@@ -4379,21 +4310,6 @@ faye@^1.4.0:
|
|
|
4379
4310
|
tough-cookie "*"
|
|
4380
4311
|
tunnel-agent "*"
|
|
4381
4312
|
|
|
4382
|
-
figures@^3.2.0:
|
|
4383
|
-
version "3.2.0"
|
|
4384
|
-
resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af"
|
|
4385
|
-
integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==
|
|
4386
|
-
dependencies:
|
|
4387
|
-
escape-string-regexp "^1.0.5"
|
|
4388
|
-
|
|
4389
|
-
figures@^5.0.0:
|
|
4390
|
-
version "5.0.0"
|
|
4391
|
-
resolved "https://registry.yarnpkg.com/figures/-/figures-5.0.0.tgz#126cd055052dea699f8a54e8c9450e6ecfc44d5f"
|
|
4392
|
-
integrity sha512-ej8ksPF4x6e5wvK9yevct0UCXh8TTFlWGVLlgjZuoBH1HwjIfKE/IdL5mq89sFA7zELi1VhKpmtDnrs7zWyeyg==
|
|
4393
|
-
dependencies:
|
|
4394
|
-
escape-string-regexp "^5.0.0"
|
|
4395
|
-
is-unicode-supported "^1.2.0"
|
|
4396
|
-
|
|
4397
4313
|
figures@^6.1.0:
|
|
4398
4314
|
version "6.1.0"
|
|
4399
4315
|
resolved "https://registry.yarnpkg.com/figures/-/figures-6.1.0.tgz#935479f51865fa7479f6fa94fc6fc7ac14e62c4a"
|
|
@@ -5128,16 +5044,6 @@ ink@5.0.1, ink@^5.0.1:
|
|
|
5128
5044
|
ws "^8.15.0"
|
|
5129
5045
|
yoga-wasm-web "~0.3.3"
|
|
5130
5046
|
|
|
5131
|
-
inquirer-autocomplete-standalone@^0.8.1:
|
|
5132
|
-
version "0.8.1"
|
|
5133
|
-
resolved "https://registry.yarnpkg.com/inquirer-autocomplete-standalone/-/inquirer-autocomplete-standalone-0.8.1.tgz#540ac162d5dd01f83d0f4016b76bf0bb64e2fff8"
|
|
5134
|
-
integrity sha512-mlzwCTiXDX1Cw4yJL5PCq32k23XYLTK8K6BDFoL1a76iJeFB5ul6IoMU9spgdDagl2SM7P6ZaCNjj8VNXRDPOQ==
|
|
5135
|
-
dependencies:
|
|
5136
|
-
"@inquirer/core" "^3.1.1"
|
|
5137
|
-
"@inquirer/type" "^1.1.2"
|
|
5138
|
-
figures "^5.0.0"
|
|
5139
|
-
picocolors "^1.0.0"
|
|
5140
|
-
|
|
5141
5047
|
internal-slot@^1.0.7:
|
|
5142
5048
|
version "1.0.7"
|
|
5143
5049
|
resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.7.tgz#c06dcca3ed874249881007b0a5523b172a190802"
|
|
@@ -5403,11 +5309,6 @@ is-unicode-supported@^0.1.0:
|
|
|
5403
5309
|
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7"
|
|
5404
5310
|
integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==
|
|
5405
5311
|
|
|
5406
|
-
is-unicode-supported@^1.2.0:
|
|
5407
|
-
version "1.3.0"
|
|
5408
|
-
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz#d824984b616c292a2e198207d4a609983842f714"
|
|
5409
|
-
integrity sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==
|
|
5410
|
-
|
|
5411
5312
|
is-unicode-supported@^2.0.0:
|
|
5412
5313
|
version "2.1.0"
|
|
5413
5314
|
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz#09f0ab0de6d3744d48d265ebb98f65d11f2a9b3a"
|
|
@@ -7205,11 +7106,6 @@ rimraf@^3.0.0, rimraf@^3.0.2:
|
|
|
7205
7106
|
dependencies:
|
|
7206
7107
|
glob "^7.1.3"
|
|
7207
7108
|
|
|
7208
|
-
run-async@^3.0.0:
|
|
7209
|
-
version "3.0.0"
|
|
7210
|
-
resolved "https://registry.yarnpkg.com/run-async/-/run-async-3.0.0.tgz#42a432f6d76c689522058984384df28be379daad"
|
|
7211
|
-
integrity sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q==
|
|
7212
|
-
|
|
7213
7109
|
run-parallel@^1.1.9:
|
|
7214
7110
|
version "1.2.0"
|
|
7215
7111
|
resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"
|
package/oclif.manifest.json
CHANGED
|
@@ -467,28 +467,6 @@
|
|
|
467
467
|
"hasDynamicHelp": false,
|
|
468
468
|
"multiple": false,
|
|
469
469
|
"type": "option"
|
|
470
|
-
},
|
|
471
|
-
"from-definition": {
|
|
472
|
-
"char": "d",
|
|
473
|
-
"name": "from-definition",
|
|
474
|
-
"summary": "The API name of the AIEvaluationDefinition that you want to convert to a spec file.",
|
|
475
|
-
"hasDynamicHelp": false,
|
|
476
|
-
"multiple": false,
|
|
477
|
-
"type": "option"
|
|
478
|
-
},
|
|
479
|
-
"force-overwrite": {
|
|
480
|
-
"name": "force-overwrite",
|
|
481
|
-
"summary": "Don't prompt for confirmation when overwriting an existing test spec file.",
|
|
482
|
-
"allowNo": false,
|
|
483
|
-
"type": "boolean"
|
|
484
|
-
},
|
|
485
|
-
"output-file": {
|
|
486
|
-
"char": "f",
|
|
487
|
-
"name": "output-file",
|
|
488
|
-
"summary": "The name of the generated spec file. Defaults to \"specs/<AGENT_API_NAME>-testSpec.yaml\"",
|
|
489
|
-
"hasDynamicHelp": false,
|
|
490
|
-
"multiple": false,
|
|
491
|
-
"type": "option"
|
|
492
470
|
}
|
|
493
471
|
},
|
|
494
472
|
"hasDynamicHelp": false,
|
|
@@ -608,7 +586,7 @@
|
|
|
608
586
|
"agent:test:create": {
|
|
609
587
|
"aliases": [],
|
|
610
588
|
"args": {},
|
|
611
|
-
"description": "
|
|
589
|
+
"description": "More information about a command. Don't repeat the summary.",
|
|
612
590
|
"examples": [
|
|
613
591
|
"<%= config.bin %> <%= command.id %>"
|
|
614
592
|
],
|
|
@@ -628,16 +606,12 @@
|
|
|
628
606
|
"multiple": false,
|
|
629
607
|
"type": "option"
|
|
630
608
|
},
|
|
631
|
-
"test-api-name": {
|
|
632
|
-
"name": "test-api-name",
|
|
633
|
-
"summary": "The API name of the AiEvaluationDefinition.",
|
|
634
|
-
"hasDynamicHelp": false,
|
|
635
|
-
"multiple": false,
|
|
636
|
-
"type": "option"
|
|
637
|
-
},
|
|
638
609
|
"spec": {
|
|
610
|
+
"char": "s",
|
|
611
|
+
"description": "More information about a flag. Don't repeat the summary.",
|
|
639
612
|
"name": "spec",
|
|
640
|
-
"
|
|
613
|
+
"required": true,
|
|
614
|
+
"summary": "Description of a flag.",
|
|
641
615
|
"hasDynamicHelp": false,
|
|
642
616
|
"multiple": false,
|
|
643
617
|
"type": "option"
|
|
@@ -665,8 +639,9 @@
|
|
|
665
639
|
"allowNo": false,
|
|
666
640
|
"type": "boolean"
|
|
667
641
|
},
|
|
668
|
-
"
|
|
669
|
-
"
|
|
642
|
+
"no-prompt": {
|
|
643
|
+
"char": "p",
|
|
644
|
+
"name": "no-prompt",
|
|
670
645
|
"summary": "Don't prompt for confirmation when overwriting an existing test.",
|
|
671
646
|
"allowNo": false,
|
|
672
647
|
"type": "boolean"
|
|
@@ -680,7 +655,7 @@
|
|
|
680
655
|
"pluginType": "core",
|
|
681
656
|
"state": "beta",
|
|
682
657
|
"strict": true,
|
|
683
|
-
"summary": "
|
|
658
|
+
"summary": "Summary of a command.",
|
|
684
659
|
"enableJsonFlag": true,
|
|
685
660
|
"isESM": true,
|
|
686
661
|
"relativePath": [
|
|
@@ -1101,5 +1076,5 @@
|
|
|
1101
1076
|
]
|
|
1102
1077
|
}
|
|
1103
1078
|
},
|
|
1104
|
-
"version": "1.15.1
|
|
1079
|
+
"version": "1.15.1"
|
|
1105
1080
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
3
|
"description": "Commands to interact with Salesforce agents",
|
|
4
|
-
"version": "1.15.1
|
|
4
|
+
"version": "1.15.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@inquirer/core": "^10.1.6",
|
|
9
8
|
"@inquirer/figures": "^1.0.7",
|
|
10
9
|
"@inquirer/prompts": "^7.2.0",
|
|
11
10
|
"@oclif/core": "^4",
|
|
12
11
|
"@oclif/multi-stage-output": "^0.7.12",
|
|
13
|
-
"@salesforce/agents": "0.9.
|
|
12
|
+
"@salesforce/agents": "0.9.6",
|
|
14
13
|
"@salesforce/core": "^8.8.0",
|
|
15
14
|
"@salesforce/kit": "^3.2.1",
|
|
16
15
|
"@salesforce/sf-plugins-core": "^12.1.0",
|
|
@@ -18,9 +17,8 @@
|
|
|
18
17
|
"@salesforce/types": "^1.3.0",
|
|
19
18
|
"ansis": "^3.3.2",
|
|
20
19
|
"fast-xml-parser": "^4.5.1",
|
|
21
|
-
"ink": "5.0.1",
|
|
20
|
+
"ink": "^5.0.1",
|
|
22
21
|
"ink-text-input": "^6.0.0",
|
|
23
|
-
"inquirer-autocomplete-standalone": "^0.8.1",
|
|
24
22
|
"react": "^18.3.1",
|
|
25
23
|
"yaml": "^2.7.0"
|
|
26
24
|
},
|
|
@@ -229,7 +227,7 @@
|
|
|
229
227
|
"exports": "./lib/index.js",
|
|
230
228
|
"type": "module",
|
|
231
229
|
"sfdx": {
|
|
232
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.15.1
|
|
233
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.15.1
|
|
230
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.15.1.crt",
|
|
231
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.15.1.sig"
|
|
234
232
|
}
|
|
235
233
|
}
|
package/lib/yes-no-cancel.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createPrompt, type Theme } from '@inquirer/core';
|
|
2
|
-
import type { PartialDeep } from '@inquirer/type';
|
|
3
|
-
type ConfirmConfig = {
|
|
4
|
-
message: string;
|
|
5
|
-
default?: boolean;
|
|
6
|
-
transformer?: (value: boolean) => string;
|
|
7
|
-
theme?: PartialDeep<Theme>;
|
|
8
|
-
};
|
|
9
|
-
declare const yesNoOrCancel: ReturnType<typeof createPrompt<boolean | 'cancel', ConfirmConfig>>;
|
|
10
|
-
export default yesNoOrCancel;
|
package/lib/yes-no-cancel.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2025, salesforce.com, inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
* Licensed under the BSD 3-Clause license.
|
|
5
|
-
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
|
-
*/
|
|
7
|
-
import { createPrompt, useState, useKeypress, isEnterKey, usePrefix, makeTheme, } from '@inquirer/core';
|
|
8
|
-
function getBooleanValue(value, defaultValue) {
|
|
9
|
-
let answer = defaultValue !== false;
|
|
10
|
-
if (/^(y|yes)/i.test(value))
|
|
11
|
-
answer = true;
|
|
12
|
-
else if (/^(n|no)/i.test(value))
|
|
13
|
-
answer = false;
|
|
14
|
-
return answer;
|
|
15
|
-
}
|
|
16
|
-
function boolToString(value) {
|
|
17
|
-
return value ? 'Yes' : 'No';
|
|
18
|
-
}
|
|
19
|
-
// Adapted from https://github.com/SBoudrias/Inquirer.js/blob/main/packages/confirm/src/index.ts
|
|
20
|
-
const yesNoOrCancel = createPrompt((config, done) => {
|
|
21
|
-
const { transformer = boolToString } = config;
|
|
22
|
-
const [status, setStatus] = useState('idle');
|
|
23
|
-
const [value, setValue] = useState('');
|
|
24
|
-
const theme = makeTheme(config.theme);
|
|
25
|
-
const prefix = usePrefix({ status, theme });
|
|
26
|
-
useKeypress((key, rl) => {
|
|
27
|
-
if (isEnterKey(key)) {
|
|
28
|
-
const answer = getBooleanValue(value, config.default);
|
|
29
|
-
setValue(transformer(answer));
|
|
30
|
-
setStatus('done');
|
|
31
|
-
done(answer);
|
|
32
|
-
}
|
|
33
|
-
else if (key.name === 'tab') {
|
|
34
|
-
const answer = boolToString(!getBooleanValue(value, config.default));
|
|
35
|
-
rl.clearLine(0); // Remove the tab character.
|
|
36
|
-
rl.write(answer);
|
|
37
|
-
setValue(answer);
|
|
38
|
-
}
|
|
39
|
-
else if (key.name === 'c') {
|
|
40
|
-
setValue('cancel');
|
|
41
|
-
setStatus('done');
|
|
42
|
-
done('cancel');
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
setValue(rl.line);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
let formattedValue = value;
|
|
49
|
-
let defaultValue = '';
|
|
50
|
-
if (status === 'done') {
|
|
51
|
-
formattedValue = theme.style.answer(value);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
defaultValue = ` ${theme.style.defaultAnswer(config.default === false ? 'y/N/cancel' : 'Y/n/cancel')}`;
|
|
55
|
-
}
|
|
56
|
-
const message = theme.style.message(config.message, status);
|
|
57
|
-
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
|
58
|
-
});
|
|
59
|
-
export default yesNoOrCancel;
|
|
60
|
-
//# sourceMappingURL=yes-no-cancel.js.map
|
package/lib/yes-no-cancel.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yes-no-cancel.js","sourceRoot":"","sources":["../src/yes-no-cancel.ts"],"names":[],"mappings":"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"}
|