@salesforce/plugin-agent 1.24.14-demo.1 → 1.24.14-demo.3
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 +30 -29
- package/lib/commands/agent/generate/authoring-bundle.d.ts +2 -2
- package/lib/commands/agent/generate/authoring-bundle.js +58 -19
- package/lib/commands/agent/generate/authoring-bundle.js.map +1 -1
- package/lib/commands/agent/preview.d.ts +1 -2
- package/lib/commands/agent/preview.js +8 -5
- package/lib/commands/agent/preview.js.map +1 -1
- package/lib/commands/agent/publish/authoring-bundle.d.ts +2 -2
- package/lib/commands/agent/publish/authoring-bundle.js +24 -7
- package/lib/commands/agent/publish/authoring-bundle.js.map +1 -1
- package/lib/commands/agent/validate/authoring-bundle.d.ts +2 -2
- package/lib/commands/agent/validate/authoring-bundle.js +60 -9
- package/lib/commands/agent/validate/authoring-bundle.js.map +1 -1
- package/lib/components/agent-preview-react.js +59 -33
- package/lib/components/agent-preview-react.js.map +1 -1
- package/lib/flags.d.ts +1 -0
- package/lib/flags.js +12 -1
- package/lib/flags.js.map +1 -1
- package/messages/agent.generate.authoring-bundle.md +12 -4
- package/messages/agent.preview.md +1 -1
- package/messages/agent.publish.authoring-bundle.md +8 -4
- package/messages/agent.validate.authoring-bundle.md +8 -4
- package/oclif.manifest.json +105 -89
- package/package.json +4 -4
- package/schemas/agent-generate-authoring__bundle.json +2 -2
package/oclif.manifest.json
CHANGED
|
@@ -285,7 +285,6 @@
|
|
|
285
285
|
"target-org"
|
|
286
286
|
],
|
|
287
287
|
"name": "client-app",
|
|
288
|
-
"required": true,
|
|
289
288
|
"summary": "Name of the linked client app to use for the agent connection. You must have previously created this link with \"org login web --client-app\". Run \"org display\" to see the available linked client apps.",
|
|
290
289
|
"hasDynamicHelp": false,
|
|
291
290
|
"multiple": false,
|
|
@@ -301,7 +300,7 @@
|
|
|
301
300
|
},
|
|
302
301
|
"authoring-bundle": {
|
|
303
302
|
"name": "authoring-bundle",
|
|
304
|
-
"summary": "Preview an ephemeral
|
|
303
|
+
"summary": "Preview an ephemeral agent by specifying the API name of the Authoring Bundle metadata",
|
|
305
304
|
"hasDynamicHelp": false,
|
|
306
305
|
"multiple": false,
|
|
307
306
|
"type": "option"
|
|
@@ -328,7 +327,6 @@
|
|
|
328
327
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
329
328
|
"pluginName": "@salesforce/plugin-agent",
|
|
330
329
|
"pluginType": "core",
|
|
331
|
-
"state": "beta",
|
|
332
330
|
"strict": true,
|
|
333
331
|
"summary": "Interact with an active agent to preview how the agent responds to your statements, questions, and commands (utterances).",
|
|
334
332
|
"enableJsonFlag": false,
|
|
@@ -542,7 +540,7 @@
|
|
|
542
540
|
"agent:generate:authoring-bundle": {
|
|
543
541
|
"aliases": [],
|
|
544
542
|
"args": {},
|
|
545
|
-
"description": "Generates an authoring bundle containing
|
|
543
|
+
"description": "Generates an authoring bundle containing Agent and its meta.xml file from an agent specification file.",
|
|
546
544
|
"examples": [
|
|
547
545
|
"Generate an authoring bundle from a specification file:\n<%= config.bin %> <%= command.id %> --spec-file path/to/spec.yaml --name \"My Authoring Bundle\"",
|
|
548
546
|
"Generate an authoring bundle with a custom output directory:\n<%= config.bin %> <%= command.id %> --spec-file path/to/spec.yaml --name \"My Authoring Bundle\" --output-dir path/to/output"
|
|
@@ -573,6 +571,13 @@
|
|
|
573
571
|
"multiple": false,
|
|
574
572
|
"type": "option"
|
|
575
573
|
},
|
|
574
|
+
"api-name": {
|
|
575
|
+
"name": "api-name",
|
|
576
|
+
"summary": "API name of the new authoring bundle; if not specified, the API name is derived from the authoring bundle name (label); the API name must not exist in the org.",
|
|
577
|
+
"hasDynamicHelp": false,
|
|
578
|
+
"multiple": false,
|
|
579
|
+
"type": "option"
|
|
580
|
+
},
|
|
576
581
|
"api-version": {
|
|
577
582
|
"description": "Override the api version used for api requests made by this command",
|
|
578
583
|
"name": "api-version",
|
|
@@ -599,7 +604,7 @@
|
|
|
599
604
|
"name": {
|
|
600
605
|
"char": "n",
|
|
601
606
|
"name": "name",
|
|
602
|
-
"summary": "Name (label) of the authoring bundle.
|
|
607
|
+
"summary": "Name (label) of the authoring bundle.",
|
|
603
608
|
"hasDynamicHelp": false,
|
|
604
609
|
"multiple": false,
|
|
605
610
|
"type": "option"
|
|
@@ -611,16 +616,19 @@
|
|
|
611
616
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
612
617
|
"pluginName": "@salesforce/plugin-agent",
|
|
613
618
|
"pluginType": "core",
|
|
614
|
-
"state": "beta",
|
|
615
619
|
"strict": true,
|
|
616
620
|
"summary": "Generate an authoring bundle from an agent specification.",
|
|
617
621
|
"enableJsonFlag": true,
|
|
618
622
|
"requiresProject": true,
|
|
619
623
|
"FLAGGABLE_PROMPTS": {
|
|
620
624
|
"name": {
|
|
621
|
-
"message": "Name (label) of the authoring bundle.
|
|
625
|
+
"message": "Name (label) of the authoring bundle.",
|
|
622
626
|
"required": true
|
|
623
627
|
},
|
|
628
|
+
"api-name": {
|
|
629
|
+
"message": "API name of the new authoring bundle; if not specified, the API name is derived from the authoring bundle name (label); the API name must not exist in the org.",
|
|
630
|
+
"promptMessage": "API name of the new authoring bundle"
|
|
631
|
+
},
|
|
624
632
|
"spec": {
|
|
625
633
|
"message": "Path to the agent specification file.",
|
|
626
634
|
"required": true
|
|
@@ -831,7 +839,6 @@
|
|
|
831
839
|
"api-name": {
|
|
832
840
|
"char": "n",
|
|
833
841
|
"name": "api-name",
|
|
834
|
-
"required": true,
|
|
835
842
|
"summary": "API name of the Agent Authoring Bundle to publish",
|
|
836
843
|
"hasDynamicHelp": false,
|
|
837
844
|
"multiple": false,
|
|
@@ -844,11 +851,16 @@
|
|
|
844
851
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
845
852
|
"pluginName": "@salesforce/plugin-agent",
|
|
846
853
|
"pluginType": "core",
|
|
847
|
-
"state": "beta",
|
|
848
854
|
"strict": true,
|
|
849
855
|
"summary": "Publish an Agent Authoring Bundle as a new agent",
|
|
850
856
|
"enableJsonFlag": true,
|
|
851
857
|
"requiresProject": true,
|
|
858
|
+
"FLAGGABLE_PROMPTS": {
|
|
859
|
+
"api-name": {
|
|
860
|
+
"message": "API name of the Agent Authoring Bundle to publish",
|
|
861
|
+
"promptMessage": "API name of the authoring bundle to publish"
|
|
862
|
+
}
|
|
863
|
+
},
|
|
852
864
|
"isESM": true,
|
|
853
865
|
"relativePath": [
|
|
854
866
|
"lib",
|
|
@@ -867,6 +879,89 @@
|
|
|
867
879
|
"authoring-bundle:publish:agent"
|
|
868
880
|
]
|
|
869
881
|
},
|
|
882
|
+
"agent:validate:authoring-bundle": {
|
|
883
|
+
"aliases": [],
|
|
884
|
+
"args": {},
|
|
885
|
+
"description": "Validates an Agent Authoring Bundle by compiling the AF script and checking for errors.",
|
|
886
|
+
"examples": [
|
|
887
|
+
"Validate an Agent Authoring Bundle:\n<%= config.bin %> <%= command.id %> --api-name path/to/bundle"
|
|
888
|
+
],
|
|
889
|
+
"flags": {
|
|
890
|
+
"json": {
|
|
891
|
+
"description": "Format output as json.",
|
|
892
|
+
"helpGroup": "GLOBAL",
|
|
893
|
+
"name": "json",
|
|
894
|
+
"allowNo": false,
|
|
895
|
+
"type": "boolean"
|
|
896
|
+
},
|
|
897
|
+
"flags-dir": {
|
|
898
|
+
"helpGroup": "GLOBAL",
|
|
899
|
+
"name": "flags-dir",
|
|
900
|
+
"summary": "Import flag values from a directory.",
|
|
901
|
+
"hasDynamicHelp": false,
|
|
902
|
+
"multiple": false,
|
|
903
|
+
"type": "option"
|
|
904
|
+
},
|
|
905
|
+
"target-org": {
|
|
906
|
+
"char": "o",
|
|
907
|
+
"name": "target-org",
|
|
908
|
+
"noCacheDefault": true,
|
|
909
|
+
"required": true,
|
|
910
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
911
|
+
"hasDynamicHelp": true,
|
|
912
|
+
"multiple": false,
|
|
913
|
+
"type": "option"
|
|
914
|
+
},
|
|
915
|
+
"api-version": {
|
|
916
|
+
"description": "Override the api version used for api requests made by this command",
|
|
917
|
+
"name": "api-version",
|
|
918
|
+
"hasDynamicHelp": false,
|
|
919
|
+
"multiple": false,
|
|
920
|
+
"type": "option"
|
|
921
|
+
},
|
|
922
|
+
"api-name": {
|
|
923
|
+
"char": "n",
|
|
924
|
+
"name": "api-name",
|
|
925
|
+
"summary": "Path to the Agent Authoring Bundle to validate",
|
|
926
|
+
"hasDynamicHelp": false,
|
|
927
|
+
"multiple": false,
|
|
928
|
+
"type": "option"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"hasDynamicHelp": true,
|
|
932
|
+
"hiddenAliases": [],
|
|
933
|
+
"id": "agent:validate:authoring-bundle",
|
|
934
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
935
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
936
|
+
"pluginType": "core",
|
|
937
|
+
"strict": true,
|
|
938
|
+
"summary": "Validate an Agent Authoring Bundle",
|
|
939
|
+
"enableJsonFlag": true,
|
|
940
|
+
"requiresProject": true,
|
|
941
|
+
"FLAGGABLE_PROMPTS": {
|
|
942
|
+
"api-name": {
|
|
943
|
+
"message": "Path to the Agent Authoring Bundle to validate",
|
|
944
|
+
"promptMessage": "API name of the authoring bundle to validate"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"isESM": true,
|
|
948
|
+
"relativePath": [
|
|
949
|
+
"lib",
|
|
950
|
+
"commands",
|
|
951
|
+
"agent",
|
|
952
|
+
"validate",
|
|
953
|
+
"authoring-bundle.js"
|
|
954
|
+
],
|
|
955
|
+
"aliasPermutations": [],
|
|
956
|
+
"permutations": [
|
|
957
|
+
"agent:validate:authoring-bundle",
|
|
958
|
+
"validate:agent:authoring-bundle",
|
|
959
|
+
"validate:authoring-bundle:agent",
|
|
960
|
+
"agent:authoring-bundle:validate",
|
|
961
|
+
"authoring-bundle:agent:validate",
|
|
962
|
+
"authoring-bundle:validate:agent"
|
|
963
|
+
]
|
|
964
|
+
},
|
|
870
965
|
"agent:test:create": {
|
|
871
966
|
"aliases": [],
|
|
872
967
|
"args": {},
|
|
@@ -1380,86 +1475,7 @@
|
|
|
1380
1475
|
"run:agent:test",
|
|
1381
1476
|
"run:test:agent"
|
|
1382
1477
|
]
|
|
1383
|
-
},
|
|
1384
|
-
"agent:validate:authoring-bundle": {
|
|
1385
|
-
"aliases": [],
|
|
1386
|
-
"args": {},
|
|
1387
|
-
"description": "Validates an Agent Authoring Bundle by compiling the AF script and checking for errors.",
|
|
1388
|
-
"examples": [
|
|
1389
|
-
"Validate an Agent Authoring Bundle:\n<%= config.bin %> <%= command.id %> --api-name path/to/bundle"
|
|
1390
|
-
],
|
|
1391
|
-
"flags": {
|
|
1392
|
-
"json": {
|
|
1393
|
-
"description": "Format output as json.",
|
|
1394
|
-
"helpGroup": "GLOBAL",
|
|
1395
|
-
"name": "json",
|
|
1396
|
-
"allowNo": false,
|
|
1397
|
-
"type": "boolean"
|
|
1398
|
-
},
|
|
1399
|
-
"flags-dir": {
|
|
1400
|
-
"helpGroup": "GLOBAL",
|
|
1401
|
-
"name": "flags-dir",
|
|
1402
|
-
"summary": "Import flag values from a directory.",
|
|
1403
|
-
"hasDynamicHelp": false,
|
|
1404
|
-
"multiple": false,
|
|
1405
|
-
"type": "option"
|
|
1406
|
-
},
|
|
1407
|
-
"target-org": {
|
|
1408
|
-
"char": "o",
|
|
1409
|
-
"name": "target-org",
|
|
1410
|
-
"noCacheDefault": true,
|
|
1411
|
-
"required": true,
|
|
1412
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1413
|
-
"hasDynamicHelp": true,
|
|
1414
|
-
"multiple": false,
|
|
1415
|
-
"type": "option"
|
|
1416
|
-
},
|
|
1417
|
-
"api-version": {
|
|
1418
|
-
"description": "Override the api version used for api requests made by this command",
|
|
1419
|
-
"name": "api-version",
|
|
1420
|
-
"hasDynamicHelp": false,
|
|
1421
|
-
"multiple": false,
|
|
1422
|
-
"type": "option"
|
|
1423
|
-
},
|
|
1424
|
-
"api-name": {
|
|
1425
|
-
"char": "n",
|
|
1426
|
-
"name": "api-name",
|
|
1427
|
-
"required": true,
|
|
1428
|
-
"summary": "Path to the Agent Authoring Bundle to validate",
|
|
1429
|
-
"hasDynamicHelp": false,
|
|
1430
|
-
"multiple": false,
|
|
1431
|
-
"type": "option"
|
|
1432
|
-
}
|
|
1433
|
-
},
|
|
1434
|
-
"hasDynamicHelp": true,
|
|
1435
|
-
"hiddenAliases": [],
|
|
1436
|
-
"id": "agent:validate:authoring-bundle",
|
|
1437
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
1438
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
1439
|
-
"pluginType": "core",
|
|
1440
|
-
"state": "beta",
|
|
1441
|
-
"strict": true,
|
|
1442
|
-
"summary": "Validate an Agent Authoring Bundle",
|
|
1443
|
-
"enableJsonFlag": true,
|
|
1444
|
-
"requiresProject": true,
|
|
1445
|
-
"isESM": true,
|
|
1446
|
-
"relativePath": [
|
|
1447
|
-
"lib",
|
|
1448
|
-
"commands",
|
|
1449
|
-
"agent",
|
|
1450
|
-
"validate",
|
|
1451
|
-
"authoring-bundle.js"
|
|
1452
|
-
],
|
|
1453
|
-
"aliasPermutations": [],
|
|
1454
|
-
"permutations": [
|
|
1455
|
-
"agent:validate:authoring-bundle",
|
|
1456
|
-
"validate:agent:authoring-bundle",
|
|
1457
|
-
"validate:authoring-bundle:agent",
|
|
1458
|
-
"agent:authoring-bundle:validate",
|
|
1459
|
-
"authoring-bundle:agent:validate",
|
|
1460
|
-
"authoring-bundle:validate:agent"
|
|
1461
|
-
]
|
|
1462
1478
|
}
|
|
1463
1479
|
},
|
|
1464
|
-
"version": "1.24.14-demo.
|
|
1480
|
+
"version": "1.24.14-demo.3"
|
|
1465
1481
|
}
|
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.24.14-demo.
|
|
4
|
+
"version": "1.24.14-demo.3",
|
|
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.8.6",
|
|
10
10
|
"@oclif/core": "^4",
|
|
11
11
|
"@oclif/multi-stage-output": "^0.8.23",
|
|
12
|
-
"@salesforce/agents": "^0.17.
|
|
12
|
+
"@salesforce/agents": "^0.17.11",
|
|
13
13
|
"@salesforce/core": "^8.23.1",
|
|
14
14
|
"@salesforce/kit": "^3.2.3",
|
|
15
15
|
"@salesforce/sf-plugins-core": "^12.2.4",
|
|
@@ -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.24.14-demo.
|
|
233
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-demo.
|
|
232
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-demo.3.crt",
|
|
233
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-demo.3.sig"
|
|
234
234
|
}
|
|
235
235
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"AgentGenerateAuthoringBundleResult": {
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
-
"
|
|
8
|
+
"agentPath": {
|
|
9
9
|
"type": "string"
|
|
10
10
|
},
|
|
11
11
|
"metaXmlPath": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"type": "string"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"required": ["
|
|
18
|
+
"required": ["agentPath", "metaXmlPath", "outputDir"],
|
|
19
19
|
"additionalProperties": false
|
|
20
20
|
}
|
|
21
21
|
}
|