@salesforce/plugin-agent 1.14.5-dev.5 → 1.15.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 +35 -38
- package/lib/commands/agent/create.js +2 -2
- package/lib/commands/agent/create.js.map +1 -1
- package/lib/commands/agent/generate/template.d.ts +4 -3
- package/lib/commands/agent/generate/template.js +108 -20
- package/lib/commands/agent/generate/template.js.map +1 -1
- package/lib/commands/agent/generate/test-spec.d.ts +0 -4
- package/lib/commands/agent/generate/test-spec.js +76 -130
- package/lib/commands/agent/generate/test-spec.js.map +1 -1
- package/lib/commands/agent/test/create.d.ts +1 -2
- package/lib/commands/agent/test/create.js +18 -75
- 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.template.md +7 -7
- package/messages/agent.generate.test-spec.md +0 -8
- package/messages/agent.test.create.md +7 -17
- package/npm-shrinkwrap.json +39 -521
- package/oclif.lock +16 -115
- package/oclif.manifest.json +16 -37
- package/package.json +5 -6
- package/schemas/agent-generate-template.json +5 -2
- 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"
|
|
@@ -1711,6 +1661,11 @@
|
|
|
1711
1661
|
resolved "https://registry.yarnpkg.com/@salesforce/ts-types/-/ts-types-2.0.12.tgz#60420622812a7ec7e46d220667bc29b42dc247ff"
|
|
1712
1662
|
integrity sha512-BIJyduJC18Kc8z+arUm5AZ9VkPRyw1KKAm+Tk+9LT99eOzhNilyfKzhZ4t+tG2lIGgnJpmytZfVDZ0e2kFul8g==
|
|
1713
1663
|
|
|
1664
|
+
"@salesforce/types@^1.3.0":
|
|
1665
|
+
version "1.3.0"
|
|
1666
|
+
resolved "https://registry.yarnpkg.com/@salesforce/types/-/types-1.3.0.tgz#c8b686cd5d7351aa3b9857ed03561d6a7439e5a8"
|
|
1667
|
+
integrity sha512-tcjBZrzCukOVIVm7mLHefsfDMyd+MTWWFWXk5wbdIQa+hiehUSA2SG0B0cpDMuOaIa9UiBm/SQCI+zznlt6W6g==
|
|
1668
|
+
|
|
1714
1669
|
"@shikijs/core@1.12.0":
|
|
1715
1670
|
version "1.12.0"
|
|
1716
1671
|
resolved "https://registry.yarnpkg.com/@shikijs/core/-/core-1.12.0.tgz#58ae6d02da7934edd9c10951a989c9cde0cf736b"
|
|
@@ -2387,13 +2342,6 @@
|
|
|
2387
2342
|
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.7.tgz#4c620090f28ca7f905a94b706f74dc5b57b44f2f"
|
|
2388
2343
|
integrity sha512-GN8yJ1mNTcFcah/wKEFIJckJx9iJLoMSzWcfRRuxz/Jk+U6KQNnml+etbtxFK8lPjzOw3zp4Ha/kjSst9fsHYw==
|
|
2389
2344
|
|
|
2390
|
-
"@types/mute-stream@^0.0.1":
|
|
2391
|
-
version "0.0.1"
|
|
2392
|
-
resolved "https://registry.yarnpkg.com/@types/mute-stream/-/mute-stream-0.0.1.tgz#8ec7d16d51e2ceb054d8be0226250169d17af5b2"
|
|
2393
|
-
integrity sha512-0yQLzYhCqGz7CQPE3iDmYjhb7KMBFOP+tBkyw+/Y2YyDI5wpS7itXXxneN1zSsUwWx3Ji6YiVYrhAnpQGS/vkw==
|
|
2394
|
-
dependencies:
|
|
2395
|
-
"@types/node" "*"
|
|
2396
|
-
|
|
2397
2345
|
"@types/mute-stream@^0.0.4":
|
|
2398
2346
|
version "0.0.4"
|
|
2399
2347
|
resolved "https://registry.yarnpkg.com/@types/mute-stream/-/mute-stream-0.0.4.tgz#77208e56a08767af6c5e1237be8888e2f255c478"
|
|
@@ -2415,13 +2363,6 @@
|
|
|
2415
2363
|
dependencies:
|
|
2416
2364
|
undici-types "~5.26.4"
|
|
2417
2365
|
|
|
2418
|
-
"@types/node@^20.4.8":
|
|
2419
|
-
version "20.17.17"
|
|
2420
|
-
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.17.17.tgz#5cea2af2e271313742c14f418eaf5dcfa8ae2e3a"
|
|
2421
|
-
integrity sha512-/WndGO4kIfMicEQLTi/mDANUu/iVUhT7KboZPdEqqHQ4aTS+3qT3U5gIqWDFV+XouorjfgGqvKILJeHhuQgFYg==
|
|
2422
|
-
dependencies:
|
|
2423
|
-
undici-types "~6.19.2"
|
|
2424
|
-
|
|
2425
2366
|
"@types/normalize-package-data@^2.4.0":
|
|
2426
2367
|
version "2.4.1"
|
|
2427
2368
|
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301"
|
|
@@ -3171,7 +3112,7 @@ chalk@^2.4.2:
|
|
|
3171
3112
|
escape-string-regexp "^1.0.5"
|
|
3172
3113
|
supports-color "^5.3.0"
|
|
3173
3114
|
|
|
3174
|
-
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:
|
|
3175
3116
|
version "4.1.2"
|
|
3176
3117
|
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
|
|
3177
3118
|
integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
|
|
@@ -3277,7 +3218,7 @@ cli-progress@^3.12.0:
|
|
|
3277
3218
|
dependencies:
|
|
3278
3219
|
string-width "^4.2.3"
|
|
3279
3220
|
|
|
3280
|
-
cli-spinners@^2, cli-spinners@^2.9.
|
|
3221
|
+
cli-spinners@^2, cli-spinners@^2.9.2:
|
|
3281
3222
|
version "2.9.2"
|
|
3282
3223
|
resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.9.2.tgz#1773a8f4b9c4d6ac31563df53b3fc1d79462fe41"
|
|
3283
3224
|
integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==
|
|
@@ -3950,11 +3891,6 @@ escape-string-regexp@^2.0.0:
|
|
|
3950
3891
|
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
|
|
3951
3892
|
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
|
|
3952
3893
|
|
|
3953
|
-
escape-string-regexp@^5.0.0:
|
|
3954
|
-
version "5.0.0"
|
|
3955
|
-
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8"
|
|
3956
|
-
integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==
|
|
3957
|
-
|
|
3958
3894
|
escodegen@^2.1.0:
|
|
3959
3895
|
version "2.1.0"
|
|
3960
3896
|
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.1.0.tgz#ba93bbb7a43986d29d6041f99f5262da773e2e17"
|
|
@@ -4374,21 +4310,6 @@ faye@^1.4.0:
|
|
|
4374
4310
|
tough-cookie "*"
|
|
4375
4311
|
tunnel-agent "*"
|
|
4376
4312
|
|
|
4377
|
-
figures@^3.2.0:
|
|
4378
|
-
version "3.2.0"
|
|
4379
|
-
resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af"
|
|
4380
|
-
integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==
|
|
4381
|
-
dependencies:
|
|
4382
|
-
escape-string-regexp "^1.0.5"
|
|
4383
|
-
|
|
4384
|
-
figures@^5.0.0:
|
|
4385
|
-
version "5.0.0"
|
|
4386
|
-
resolved "https://registry.yarnpkg.com/figures/-/figures-5.0.0.tgz#126cd055052dea699f8a54e8c9450e6ecfc44d5f"
|
|
4387
|
-
integrity sha512-ej8ksPF4x6e5wvK9yevct0UCXh8TTFlWGVLlgjZuoBH1HwjIfKE/IdL5mq89sFA7zELi1VhKpmtDnrs7zWyeyg==
|
|
4388
|
-
dependencies:
|
|
4389
|
-
escape-string-regexp "^5.0.0"
|
|
4390
|
-
is-unicode-supported "^1.2.0"
|
|
4391
|
-
|
|
4392
4313
|
figures@^6.1.0:
|
|
4393
4314
|
version "6.1.0"
|
|
4394
4315
|
resolved "https://registry.yarnpkg.com/figures/-/figures-6.1.0.tgz#935479f51865fa7479f6fa94fc6fc7ac14e62c4a"
|
|
@@ -5123,16 +5044,6 @@ ink@5.0.1, ink@^5.0.1:
|
|
|
5123
5044
|
ws "^8.15.0"
|
|
5124
5045
|
yoga-wasm-web "~0.3.3"
|
|
5125
5046
|
|
|
5126
|
-
inquirer-autocomplete-standalone@^0.8.1:
|
|
5127
|
-
version "0.8.1"
|
|
5128
|
-
resolved "https://registry.yarnpkg.com/inquirer-autocomplete-standalone/-/inquirer-autocomplete-standalone-0.8.1.tgz#540ac162d5dd01f83d0f4016b76bf0bb64e2fff8"
|
|
5129
|
-
integrity sha512-mlzwCTiXDX1Cw4yJL5PCq32k23XYLTK8K6BDFoL1a76iJeFB5ul6IoMU9spgdDagl2SM7P6ZaCNjj8VNXRDPOQ==
|
|
5130
|
-
dependencies:
|
|
5131
|
-
"@inquirer/core" "^3.1.1"
|
|
5132
|
-
"@inquirer/type" "^1.1.2"
|
|
5133
|
-
figures "^5.0.0"
|
|
5134
|
-
picocolors "^1.0.0"
|
|
5135
|
-
|
|
5136
5047
|
internal-slot@^1.0.7:
|
|
5137
5048
|
version "1.0.7"
|
|
5138
5049
|
resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.7.tgz#c06dcca3ed874249881007b0a5523b172a190802"
|
|
@@ -5398,11 +5309,6 @@ is-unicode-supported@^0.1.0:
|
|
|
5398
5309
|
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7"
|
|
5399
5310
|
integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==
|
|
5400
5311
|
|
|
5401
|
-
is-unicode-supported@^1.2.0:
|
|
5402
|
-
version "1.3.0"
|
|
5403
|
-
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz#d824984b616c292a2e198207d4a609983842f714"
|
|
5404
|
-
integrity sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==
|
|
5405
|
-
|
|
5406
5312
|
is-unicode-supported@^2.0.0:
|
|
5407
5313
|
version "2.1.0"
|
|
5408
5314
|
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz#09f0ab0de6d3744d48d265ebb98f65d11f2a9b3a"
|
|
@@ -7200,11 +7106,6 @@ rimraf@^3.0.0, rimraf@^3.0.2:
|
|
|
7200
7106
|
dependencies:
|
|
7201
7107
|
glob "^7.1.3"
|
|
7202
7108
|
|
|
7203
|
-
run-async@^3.0.0:
|
|
7204
|
-
version "3.0.0"
|
|
7205
|
-
resolved "https://registry.yarnpkg.com/run-async/-/run-async-3.0.0.tgz#42a432f6d76c689522058984384df28be379daad"
|
|
7206
|
-
integrity sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q==
|
|
7207
|
-
|
|
7208
7109
|
run-parallel@^1.1.9:
|
|
7209
7110
|
version "1.2.0"
|
|
7210
7111
|
resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"
|
package/oclif.manifest.json
CHANGED
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"args": {},
|
|
371
371
|
"description": "Generate agent template metadata to for packaging your agent.",
|
|
372
372
|
"examples": [
|
|
373
|
-
"Generate an agent template from a Bot
|
|
373
|
+
"Generate an agent template from a Bot metadata file in your project:\n<%= config.bin %> <%= command.id %> --agent-file force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1"
|
|
374
374
|
],
|
|
375
375
|
"flags": {
|
|
376
376
|
"json": {
|
|
@@ -405,18 +405,19 @@
|
|
|
405
405
|
"multiple": false,
|
|
406
406
|
"type": "option"
|
|
407
407
|
},
|
|
408
|
-
"agent-
|
|
409
|
-
"name": "agent-
|
|
408
|
+
"agent-version": {
|
|
409
|
+
"name": "agent-version",
|
|
410
410
|
"required": true,
|
|
411
|
-
"summary": "
|
|
411
|
+
"summary": "Version of the Agent (botVersion).",
|
|
412
412
|
"hasDynamicHelp": false,
|
|
413
413
|
"multiple": false,
|
|
414
414
|
"type": "option"
|
|
415
415
|
},
|
|
416
|
-
"
|
|
417
|
-
"char": "
|
|
418
|
-
"name": "
|
|
419
|
-
"
|
|
416
|
+
"agent-file": {
|
|
417
|
+
"char": "f",
|
|
418
|
+
"name": "agent-file",
|
|
419
|
+
"required": true,
|
|
420
|
+
"summary": "The path to an Agent (Bot) file.",
|
|
420
421
|
"hasDynamicHelp": false,
|
|
421
422
|
"multiple": false,
|
|
422
423
|
"type": "option"
|
|
@@ -466,24 +467,6 @@
|
|
|
466
467
|
"hasDynamicHelp": false,
|
|
467
468
|
"multiple": false,
|
|
468
469
|
"type": "option"
|
|
469
|
-
},
|
|
470
|
-
"output-dir": {
|
|
471
|
-
"char": "d",
|
|
472
|
-
"name": "output-dir",
|
|
473
|
-
"summary": "The directory to save the generated spec file.",
|
|
474
|
-
"default": "specs",
|
|
475
|
-
"hasDynamicHelp": false,
|
|
476
|
-
"multiple": false,
|
|
477
|
-
"type": "option"
|
|
478
|
-
},
|
|
479
|
-
"output-file": {
|
|
480
|
-
"char": "f",
|
|
481
|
-
"name": "output-file",
|
|
482
|
-
"summary": "The name of the generated spec file.",
|
|
483
|
-
"default": "agentTestSpec.yaml",
|
|
484
|
-
"hasDynamicHelp": false,
|
|
485
|
-
"multiple": false,
|
|
486
|
-
"type": "option"
|
|
487
470
|
}
|
|
488
471
|
},
|
|
489
472
|
"hasDynamicHelp": false,
|
|
@@ -603,7 +586,7 @@
|
|
|
603
586
|
"agent:test:create": {
|
|
604
587
|
"aliases": [],
|
|
605
588
|
"args": {},
|
|
606
|
-
"description": "
|
|
589
|
+
"description": "More information about a command. Don't repeat the summary.",
|
|
607
590
|
"examples": [
|
|
608
591
|
"<%= config.bin %> <%= command.id %>"
|
|
609
592
|
],
|
|
@@ -623,16 +606,12 @@
|
|
|
623
606
|
"multiple": false,
|
|
624
607
|
"type": "option"
|
|
625
608
|
},
|
|
626
|
-
"test-api-name": {
|
|
627
|
-
"name": "test-api-name",
|
|
628
|
-
"summary": "The API name of the AiEvaluationDefinition.",
|
|
629
|
-
"hasDynamicHelp": false,
|
|
630
|
-
"multiple": false,
|
|
631
|
-
"type": "option"
|
|
632
|
-
},
|
|
633
609
|
"spec": {
|
|
610
|
+
"char": "s",
|
|
611
|
+
"description": "More information about a flag. Don't repeat the summary.",
|
|
634
612
|
"name": "spec",
|
|
635
|
-
"
|
|
613
|
+
"required": true,
|
|
614
|
+
"summary": "Description of a flag.",
|
|
636
615
|
"hasDynamicHelp": false,
|
|
637
616
|
"multiple": false,
|
|
638
617
|
"type": "option"
|
|
@@ -676,7 +655,7 @@
|
|
|
676
655
|
"pluginType": "core",
|
|
677
656
|
"state": "beta",
|
|
678
657
|
"strict": true,
|
|
679
|
-
"summary": "
|
|
658
|
+
"summary": "Summary of a command.",
|
|
680
659
|
"enableJsonFlag": true,
|
|
681
660
|
"isESM": true,
|
|
682
661
|
"relativePath": [
|
|
@@ -1097,5 +1076,5 @@
|
|
|
1097
1076
|
]
|
|
1098
1077
|
}
|
|
1099
1078
|
},
|
|
1100
|
-
"version": "1.
|
|
1079
|
+
"version": "1.15.0"
|
|
1101
1080
|
}
|
package/package.json
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
3
|
"description": "Commands to interact with Salesforce agents",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.15.0",
|
|
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",
|
|
17
16
|
"@salesforce/source-deploy-retrieve": "^12.14.0",
|
|
17
|
+
"@salesforce/types": "^1.3.0",
|
|
18
18
|
"ansis": "^3.3.2",
|
|
19
19
|
"fast-xml-parser": "^4.5.1",
|
|
20
20
|
"ink": "^5.0.1",
|
|
21
21
|
"ink-text-input": "^6.0.0",
|
|
22
|
-
"inquirer-autocomplete-standalone": "^0.8.1",
|
|
23
22
|
"react": "^18.3.1",
|
|
24
23
|
"yaml": "^2.7.0"
|
|
25
24
|
},
|
|
@@ -228,7 +227,7 @@
|
|
|
228
227
|
"exports": "./lib/index.js",
|
|
229
228
|
"type": "module",
|
|
230
229
|
"sfdx": {
|
|
231
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
232
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
230
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.15.0.crt",
|
|
231
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.15.0.sig"
|
|
233
232
|
}
|
|
234
233
|
}
|
|
@@ -5,11 +5,14 @@
|
|
|
5
5
|
"AgentGenerateTemplateResult": {
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
-
"
|
|
8
|
+
"genAiPlannerPath": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"botTemplatePath": {
|
|
9
12
|
"type": "string"
|
|
10
13
|
}
|
|
11
14
|
},
|
|
12
|
-
"required": ["
|
|
15
|
+
"required": ["genAiPlannerPath", "botTemplatePath"],
|
|
13
16
|
"additionalProperties": false
|
|
14
17
|
}
|
|
15
18
|
}
|
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":"AAAA;;;;;GAKG;AACH,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,SAAS,EACT,SAAS,GAGV,MAAM,gBAAgB,CAAC;AAUxB,SAAS,eAAe,CAAC,KAAa,EAAE,YAAsB;IAC5D,IAAI,MAAM,GAAG,YAAY,KAAK,KAAK,CAAC;IACpC,IAAI,WAAW,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