@salesforce/plugin-agent 1.25.0 → 1.25.2
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 +15 -15
- package/oclif.manifest.json +33 -33
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ EXAMPLES
|
|
|
112
112
|
$ sf agent activate --api-name Resort_Manager --target-org my-org
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
115
|
+
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/activate.ts)_
|
|
116
116
|
|
|
117
117
|
## `sf agent create`
|
|
118
118
|
|
|
@@ -179,7 +179,7 @@ EXAMPLES
|
|
|
179
179
|
$ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
|
|
180
180
|
```
|
|
181
181
|
|
|
182
|
-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
182
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/create.ts)_
|
|
183
183
|
|
|
184
184
|
## `sf agent deactivate`
|
|
185
185
|
|
|
@@ -219,7 +219,7 @@ EXAMPLES
|
|
|
219
219
|
$ sf agent deactivate --api-name Resort_Manager --target-org my-org
|
|
220
220
|
```
|
|
221
221
|
|
|
222
|
-
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
222
|
+
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/deactivate.ts)_
|
|
223
223
|
|
|
224
224
|
## `sf agent generate agent-spec`
|
|
225
225
|
|
|
@@ -326,7 +326,7 @@ EXAMPLES
|
|
|
326
326
|
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
|
|
327
327
|
```
|
|
328
328
|
|
|
329
|
-
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
329
|
+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/generate/agent-spec.ts)_
|
|
330
330
|
|
|
331
331
|
## `sf agent generate authoring-bundle`
|
|
332
332
|
|
|
@@ -392,7 +392,7 @@ EXAMPLES
|
|
|
392
392
|
other-package-dir/main/default --target-org my-dev-org
|
|
393
393
|
```
|
|
394
394
|
|
|
395
|
-
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
395
|
+
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/generate/authoring-bundle.ts)_
|
|
396
396
|
|
|
397
397
|
## `sf agent generate template`
|
|
398
398
|
|
|
@@ -440,7 +440,7 @@ EXAMPLES
|
|
|
440
440
|
force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
|
|
441
441
|
```
|
|
442
442
|
|
|
443
|
-
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
443
|
+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/generate/template.ts)_
|
|
444
444
|
|
|
445
445
|
## `sf agent generate test-spec`
|
|
446
446
|
|
|
@@ -501,7 +501,7 @@ EXAMPLES
|
|
|
501
501
|
force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
|
|
502
502
|
```
|
|
503
503
|
|
|
504
|
-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
504
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/generate/test-spec.ts)_
|
|
505
505
|
|
|
506
506
|
## `sf agent preview`
|
|
507
507
|
|
|
@@ -580,7 +580,7 @@ EXAMPLES
|
|
|
580
580
|
$ sf agent preview --use-live-actions --apex-debug --output-dir transcripts/my-preview
|
|
581
581
|
```
|
|
582
582
|
|
|
583
|
-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
583
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/preview.ts)_
|
|
584
584
|
|
|
585
585
|
## `sf agent publish authoring-bundle`
|
|
586
586
|
|
|
@@ -627,7 +627,7 @@ EXAMPLES
|
|
|
627
627
|
$ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-dev-org
|
|
628
628
|
```
|
|
629
629
|
|
|
630
|
-
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
630
|
+
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/publish/authoring-bundle.ts)_
|
|
631
631
|
|
|
632
632
|
## `sf agent test create`
|
|
633
633
|
|
|
@@ -682,7 +682,7 @@ EXAMPLES
|
|
|
682
682
|
$ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
|
|
683
683
|
```
|
|
684
684
|
|
|
685
|
-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
685
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/test/create.ts)_
|
|
686
686
|
|
|
687
687
|
## `sf agent test list`
|
|
688
688
|
|
|
@@ -717,7 +717,7 @@ EXAMPLES
|
|
|
717
717
|
$ sf agent test list --target-org my-org
|
|
718
718
|
```
|
|
719
719
|
|
|
720
|
-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
720
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/test/list.ts)_
|
|
721
721
|
|
|
722
722
|
## `sf agent test results`
|
|
723
723
|
|
|
@@ -783,7 +783,7 @@ FLAG DESCRIPTIONS
|
|
|
783
783
|
expression when using custom evaluations.
|
|
784
784
|
```
|
|
785
785
|
|
|
786
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
786
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/test/results.ts)_
|
|
787
787
|
|
|
788
788
|
## `sf agent test resume`
|
|
789
789
|
|
|
@@ -856,7 +856,7 @@ FLAG DESCRIPTIONS
|
|
|
856
856
|
expression when using custom evaluations.
|
|
857
857
|
```
|
|
858
858
|
|
|
859
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
859
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/test/resume.ts)_
|
|
860
860
|
|
|
861
861
|
## `sf agent test run`
|
|
862
862
|
|
|
@@ -930,7 +930,7 @@ FLAG DESCRIPTIONS
|
|
|
930
930
|
expression when using custom evaluations.
|
|
931
931
|
```
|
|
932
932
|
|
|
933
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
933
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/test/run.ts)_
|
|
934
934
|
|
|
935
935
|
## `sf agent validate authoring-bundle`
|
|
936
936
|
|
|
@@ -977,6 +977,6 @@ EXAMPLES
|
|
|
977
977
|
$ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
|
|
978
978
|
```
|
|
979
979
|
|
|
980
|
-
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.
|
|
980
|
+
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.2/src/commands/agent/validate/authoring-bundle.ts)_
|
|
981
981
|
|
|
982
982
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
|
@@ -1321,13 +1321,13 @@
|
|
|
1321
1321
|
"run:test:agent"
|
|
1322
1322
|
]
|
|
1323
1323
|
},
|
|
1324
|
-
"agent:
|
|
1324
|
+
"agent:validate:authoring-bundle": {
|
|
1325
1325
|
"aliases": [],
|
|
1326
1326
|
"args": {},
|
|
1327
|
-
"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\
|
|
1327
|
+
"description": "An authoring bundle is a metadata type (named aiAuthoringBundle) that provides the blueprint for an agent. The metadata type contains two files: the standard metatada XML file and an Agent Script file (extension \".agent\") that fully describes the agent using the Agent Script language.\n\nThis command validates that the Agent Script file in the authoring bundle compiles without errors so that you can later publish the bundle to your org. Use this command while you code the Agent Script file to ensure that it's valid. If the validation fails, the command outputs the list of syntax errors, a brief description of the error, and the location in the Agent Script file where the error occurred.\n\nThis command uses the API name of the authoring bundle. If you don't provide an API name with the --api-name flag, the command searches the current DX project and outputs a list of authoring bundles that it found for you to choose from.",
|
|
1328
1328
|
"examples": [
|
|
1329
|
-
"
|
|
1330
|
-
"
|
|
1329
|
+
"Validate an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
|
|
1330
|
+
"Validate an authoring bundle with API name MyAuthoringBundle; use the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringBundle --target-org my-dev-org"
|
|
1331
1331
|
],
|
|
1332
1332
|
"flags": {
|
|
1333
1333
|
"json": {
|
|
@@ -1365,7 +1365,7 @@
|
|
|
1365
1365
|
"api-name": {
|
|
1366
1366
|
"char": "n",
|
|
1367
1367
|
"name": "api-name",
|
|
1368
|
-
"summary": "API name of the authoring bundle you want to
|
|
1368
|
+
"summary": "API name of the authoring bundle you want to validate; if not specified, the command provides a list that you can choose from.",
|
|
1369
1369
|
"hasDynamicHelp": false,
|
|
1370
1370
|
"multiple": false,
|
|
1371
1371
|
"type": "option"
|
|
@@ -1373,19 +1373,19 @@
|
|
|
1373
1373
|
},
|
|
1374
1374
|
"hasDynamicHelp": true,
|
|
1375
1375
|
"hiddenAliases": [],
|
|
1376
|
-
"id": "agent:
|
|
1376
|
+
"id": "agent:validate:authoring-bundle",
|
|
1377
1377
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
1378
1378
|
"pluginName": "@salesforce/plugin-agent",
|
|
1379
1379
|
"pluginType": "core",
|
|
1380
1380
|
"state": "beta",
|
|
1381
1381
|
"strict": true,
|
|
1382
|
-
"summary": "
|
|
1382
|
+
"summary": "Validate an authoring bundle to ensure its Agent Script file compiles successfully and can be used to publish an agent.",
|
|
1383
1383
|
"enableJsonFlag": true,
|
|
1384
1384
|
"requiresProject": true,
|
|
1385
1385
|
"FLAGGABLE_PROMPTS": {
|
|
1386
1386
|
"api-name": {
|
|
1387
|
-
"message": "API name of the authoring bundle you want to
|
|
1388
|
-
"promptMessage": "API name of the authoring bundle to
|
|
1387
|
+
"message": "API name of the authoring bundle you want to validate; if not specified, the command provides a list that you can choose from.",
|
|
1388
|
+
"promptMessage": "API name of the authoring bundle to validate"
|
|
1389
1389
|
}
|
|
1390
1390
|
},
|
|
1391
1391
|
"isESM": true,
|
|
@@ -1393,26 +1393,26 @@
|
|
|
1393
1393
|
"lib",
|
|
1394
1394
|
"commands",
|
|
1395
1395
|
"agent",
|
|
1396
|
-
"
|
|
1396
|
+
"validate",
|
|
1397
1397
|
"authoring-bundle.js"
|
|
1398
1398
|
],
|
|
1399
1399
|
"aliasPermutations": [],
|
|
1400
1400
|
"permutations": [
|
|
1401
|
-
"agent:
|
|
1402
|
-
"
|
|
1403
|
-
"
|
|
1404
|
-
"agent:authoring-bundle:
|
|
1405
|
-
"authoring-bundle:agent:
|
|
1406
|
-
"authoring-bundle:
|
|
1401
|
+
"agent:validate:authoring-bundle",
|
|
1402
|
+
"validate:agent:authoring-bundle",
|
|
1403
|
+
"validate:authoring-bundle:agent",
|
|
1404
|
+
"agent:authoring-bundle:validate",
|
|
1405
|
+
"authoring-bundle:agent:validate",
|
|
1406
|
+
"authoring-bundle:validate:agent"
|
|
1407
1407
|
]
|
|
1408
1408
|
},
|
|
1409
|
-
"agent:
|
|
1409
|
+
"agent:publish:authoring-bundle": {
|
|
1410
1410
|
"aliases": [],
|
|
1411
1411
|
"args": {},
|
|
1412
|
-
"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\
|
|
1412
|
+
"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, and then the authoring bundle metadata (AiAuthoringBundle) is deployed to your org. \n\nThis command uses the API name of the authoring bundle.",
|
|
1413
1413
|
"examples": [
|
|
1414
|
-
"
|
|
1415
|
-
"
|
|
1414
|
+
"Publish an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
|
|
1415
|
+
"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"
|
|
1416
1416
|
],
|
|
1417
1417
|
"flags": {
|
|
1418
1418
|
"json": {
|
|
@@ -1450,7 +1450,7 @@
|
|
|
1450
1450
|
"api-name": {
|
|
1451
1451
|
"char": "n",
|
|
1452
1452
|
"name": "api-name",
|
|
1453
|
-
"summary": "API name of the authoring bundle you want to
|
|
1453
|
+
"summary": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
|
|
1454
1454
|
"hasDynamicHelp": false,
|
|
1455
1455
|
"multiple": false,
|
|
1456
1456
|
"type": "option"
|
|
@@ -1458,19 +1458,19 @@
|
|
|
1458
1458
|
},
|
|
1459
1459
|
"hasDynamicHelp": true,
|
|
1460
1460
|
"hiddenAliases": [],
|
|
1461
|
-
"id": "agent:
|
|
1461
|
+
"id": "agent:publish:authoring-bundle",
|
|
1462
1462
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
1463
1463
|
"pluginName": "@salesforce/plugin-agent",
|
|
1464
1464
|
"pluginType": "core",
|
|
1465
1465
|
"state": "beta",
|
|
1466
1466
|
"strict": true,
|
|
1467
|
-
"summary": "
|
|
1467
|
+
"summary": "Publish an authoring bundle to your org, which results in a new agent or a new version of an existing agent.",
|
|
1468
1468
|
"enableJsonFlag": true,
|
|
1469
1469
|
"requiresProject": true,
|
|
1470
1470
|
"FLAGGABLE_PROMPTS": {
|
|
1471
1471
|
"api-name": {
|
|
1472
|
-
"message": "API name of the authoring bundle you want to
|
|
1473
|
-
"promptMessage": "API name of the authoring bundle to
|
|
1472
|
+
"message": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
|
|
1473
|
+
"promptMessage": "API name of the authoring bundle to publish"
|
|
1474
1474
|
}
|
|
1475
1475
|
},
|
|
1476
1476
|
"isESM": true,
|
|
@@ -1478,19 +1478,19 @@
|
|
|
1478
1478
|
"lib",
|
|
1479
1479
|
"commands",
|
|
1480
1480
|
"agent",
|
|
1481
|
-
"
|
|
1481
|
+
"publish",
|
|
1482
1482
|
"authoring-bundle.js"
|
|
1483
1483
|
],
|
|
1484
1484
|
"aliasPermutations": [],
|
|
1485
1485
|
"permutations": [
|
|
1486
|
-
"agent:
|
|
1487
|
-
"
|
|
1488
|
-
"
|
|
1489
|
-
"agent:authoring-bundle:
|
|
1490
|
-
"authoring-bundle:agent:
|
|
1491
|
-
"authoring-bundle:
|
|
1486
|
+
"agent:publish:authoring-bundle",
|
|
1487
|
+
"publish:agent:authoring-bundle",
|
|
1488
|
+
"publish:authoring-bundle:agent",
|
|
1489
|
+
"agent:authoring-bundle:publish",
|
|
1490
|
+
"authoring-bundle:agent:publish",
|
|
1491
|
+
"authoring-bundle:publish:agent"
|
|
1492
1492
|
]
|
|
1493
1493
|
}
|
|
1494
1494
|
},
|
|
1495
|
-
"version": "1.25.
|
|
1495
|
+
"version": "1.25.2"
|
|
1496
1496
|
}
|
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.25.
|
|
4
|
+
"version": "1.25.2",
|
|
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.10.1",
|
|
10
10
|
"@oclif/core": "^4",
|
|
11
11
|
"@oclif/multi-stage-output": "^0.8.29",
|
|
12
|
-
"@salesforce/agents": "^0.19.
|
|
12
|
+
"@salesforce/agents": "^0.19.8",
|
|
13
13
|
"@salesforce/core": "^8.23.7",
|
|
14
14
|
"@salesforce/kit": "^3.2.3",
|
|
15
15
|
"@salesforce/sf-plugins-core": "^12.2.6",
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"exports": "./lib/index.js",
|
|
238
238
|
"type": "module",
|
|
239
239
|
"sfdx": {
|
|
240
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.25.
|
|
241
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.25.
|
|
240
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.25.2.crt",
|
|
241
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.25.2.sig"
|
|
242
242
|
}
|
|
243
243
|
}
|