@salesforce/plugin-agent 1.24.12 → 1.24.14-demo.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/LICENSE.txt +200 -6
- package/README.md +78 -13
- package/lib/agentActivation.js +13 -4
- package/lib/agentActivation.js.map +1 -1
- package/lib/agentTestCache.js +13 -4
- package/lib/agentTestCache.js.map +1 -1
- package/lib/commands/agent/activate.js +13 -4
- package/lib/commands/agent/activate.js.map +1 -1
- package/lib/commands/agent/create.js +13 -4
- package/lib/commands/agent/create.js.map +1 -1
- package/lib/commands/agent/deactivate.js +13 -4
- package/lib/commands/agent/deactivate.js.map +1 -1
- package/lib/commands/agent/generate/agent-spec.js +13 -4
- package/lib/commands/agent/generate/agent-spec.js.map +1 -1
- package/lib/commands/agent/generate/template.js +13 -4
- package/lib/commands/agent/generate/template.js.map +1 -1
- package/lib/commands/agent/generate/test-spec.js +13 -4
- package/lib/commands/agent/generate/test-spec.js.map +1 -1
- package/lib/commands/agent/preview.js +13 -4
- package/lib/commands/agent/preview.js.map +1 -1
- package/lib/commands/agent/publish/authoring-bundle.d.ts +19 -0
- package/lib/commands/agent/publish/authoring-bundle.js +115 -0
- package/lib/commands/agent/publish/authoring-bundle.js.map +1 -0
- package/lib/commands/agent/test/create.js +13 -4
- package/lib/commands/agent/test/create.js.map +1 -1
- package/lib/commands/agent/test/list.js +13 -4
- package/lib/commands/agent/test/list.js.map +1 -1
- package/lib/commands/agent/test/results.js +13 -4
- package/lib/commands/agent/test/results.js.map +1 -1
- package/lib/commands/agent/test/resume.js +13 -4
- package/lib/commands/agent/test/resume.js.map +1 -1
- package/lib/commands/agent/test/run.js +13 -4
- package/lib/commands/agent/test/run.js.map +1 -1
- package/lib/commands/agent/validate/authoring-bundle.d.ts +18 -0
- package/lib/commands/agent/validate/authoring-bundle.js +73 -0
- package/lib/commands/agent/validate/authoring-bundle.js.map +1 -0
- package/lib/components/agent-preview-react.js +13 -4
- package/lib/components/agent-preview-react.js.map +1 -1
- package/lib/flags.js +13 -4
- package/lib/flags.js.map +1 -1
- package/lib/handleTestResults.js +13 -4
- package/lib/handleTestResults.js.map +1 -1
- package/lib/index.js +13 -4
- package/lib/index.js.map +1 -1
- package/lib/inquirer-theme.js +13 -4
- package/lib/inquirer-theme.js.map +1 -1
- package/lib/testStages.js +13 -4
- package/lib/testStages.js.map +1 -1
- package/lib/yes-no-cancel.js +13 -4
- package/lib/yes-no-cancel.js.map +1 -1
- package/messages/agent.publish.authoring-bundle.md +41 -0
- package/messages/agent.validate.authoring-bundle.md +37 -0
- package/oclif.manifest.json +159 -1
- package/package.json +10 -11
- package/schemas/agent-publish-authoring__bundle.json +25 -0
- package/schemas/agent-validate-authoring__bundle.json +22 -0
- package/npm-shrinkwrap.json +0 -17924
- package/oclif.lock +0 -9492
package/oclif.manifest.json
CHANGED
|
@@ -676,6 +676,85 @@
|
|
|
676
676
|
"test-spec:generate:agent"
|
|
677
677
|
]
|
|
678
678
|
},
|
|
679
|
+
"agent:publish:authoring-bundle": {
|
|
680
|
+
"aliases": [],
|
|
681
|
+
"args": {},
|
|
682
|
+
"description": "Publishes an Agent Authoring Bundle by compiling the AF script and creating a new agent in your org.",
|
|
683
|
+
"examples": [
|
|
684
|
+
"Publish an Agent Authoring Bundle:\n<%= config.bin %> <%= command.id %> --api-name path/to/bundle --agent-name \"My New Agent\" --target-org myorg@example.com"
|
|
685
|
+
],
|
|
686
|
+
"flags": {
|
|
687
|
+
"json": {
|
|
688
|
+
"description": "Format output as json.",
|
|
689
|
+
"helpGroup": "GLOBAL",
|
|
690
|
+
"name": "json",
|
|
691
|
+
"allowNo": false,
|
|
692
|
+
"type": "boolean"
|
|
693
|
+
},
|
|
694
|
+
"flags-dir": {
|
|
695
|
+
"helpGroup": "GLOBAL",
|
|
696
|
+
"name": "flags-dir",
|
|
697
|
+
"summary": "Import flag values from a directory.",
|
|
698
|
+
"hasDynamicHelp": false,
|
|
699
|
+
"multiple": false,
|
|
700
|
+
"type": "option"
|
|
701
|
+
},
|
|
702
|
+
"target-org": {
|
|
703
|
+
"char": "o",
|
|
704
|
+
"name": "target-org",
|
|
705
|
+
"noCacheDefault": true,
|
|
706
|
+
"required": true,
|
|
707
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
708
|
+
"hasDynamicHelp": true,
|
|
709
|
+
"multiple": false,
|
|
710
|
+
"type": "option"
|
|
711
|
+
},
|
|
712
|
+
"api-version": {
|
|
713
|
+
"description": "Override the api version used for api requests made by this command",
|
|
714
|
+
"name": "api-version",
|
|
715
|
+
"hasDynamicHelp": false,
|
|
716
|
+
"multiple": false,
|
|
717
|
+
"type": "option"
|
|
718
|
+
},
|
|
719
|
+
"api-name": {
|
|
720
|
+
"char": "n",
|
|
721
|
+
"name": "api-name",
|
|
722
|
+
"required": true,
|
|
723
|
+
"summary": "API name of the Agent Authoring Bundle to publish",
|
|
724
|
+
"hasDynamicHelp": false,
|
|
725
|
+
"multiple": false,
|
|
726
|
+
"type": "option"
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
"hasDynamicHelp": true,
|
|
730
|
+
"hiddenAliases": [],
|
|
731
|
+
"id": "agent:publish:authoring-bundle",
|
|
732
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
733
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
734
|
+
"pluginType": "core",
|
|
735
|
+
"state": "beta",
|
|
736
|
+
"strict": true,
|
|
737
|
+
"summary": "Publish an Agent Authoring Bundle as a new agent",
|
|
738
|
+
"enableJsonFlag": true,
|
|
739
|
+
"requiresProject": true,
|
|
740
|
+
"isESM": true,
|
|
741
|
+
"relativePath": [
|
|
742
|
+
"lib",
|
|
743
|
+
"commands",
|
|
744
|
+
"agent",
|
|
745
|
+
"publish",
|
|
746
|
+
"authoring-bundle.js"
|
|
747
|
+
],
|
|
748
|
+
"aliasPermutations": [],
|
|
749
|
+
"permutations": [
|
|
750
|
+
"agent:publish:authoring-bundle",
|
|
751
|
+
"publish:agent:authoring-bundle",
|
|
752
|
+
"publish:authoring-bundle:agent",
|
|
753
|
+
"agent:authoring-bundle:publish",
|
|
754
|
+
"authoring-bundle:agent:publish",
|
|
755
|
+
"authoring-bundle:publish:agent"
|
|
756
|
+
]
|
|
757
|
+
},
|
|
679
758
|
"agent:test:create": {
|
|
680
759
|
"aliases": [],
|
|
681
760
|
"args": {},
|
|
@@ -1189,7 +1268,86 @@
|
|
|
1189
1268
|
"run:agent:test",
|
|
1190
1269
|
"run:test:agent"
|
|
1191
1270
|
]
|
|
1271
|
+
},
|
|
1272
|
+
"agent:validate:authoring-bundle": {
|
|
1273
|
+
"aliases": [],
|
|
1274
|
+
"args": {},
|
|
1275
|
+
"description": "Validates an Agent Authoring Bundle by compiling the AF script and checking for errors.",
|
|
1276
|
+
"examples": [
|
|
1277
|
+
"Validate an Agent Authoring Bundle:\n<%= config.bin %> <%= command.id %> --api-name path/to/bundle"
|
|
1278
|
+
],
|
|
1279
|
+
"flags": {
|
|
1280
|
+
"json": {
|
|
1281
|
+
"description": "Format output as json.",
|
|
1282
|
+
"helpGroup": "GLOBAL",
|
|
1283
|
+
"name": "json",
|
|
1284
|
+
"allowNo": false,
|
|
1285
|
+
"type": "boolean"
|
|
1286
|
+
},
|
|
1287
|
+
"flags-dir": {
|
|
1288
|
+
"helpGroup": "GLOBAL",
|
|
1289
|
+
"name": "flags-dir",
|
|
1290
|
+
"summary": "Import flag values from a directory.",
|
|
1291
|
+
"hasDynamicHelp": false,
|
|
1292
|
+
"multiple": false,
|
|
1293
|
+
"type": "option"
|
|
1294
|
+
},
|
|
1295
|
+
"target-org": {
|
|
1296
|
+
"char": "o",
|
|
1297
|
+
"name": "target-org",
|
|
1298
|
+
"noCacheDefault": true,
|
|
1299
|
+
"required": true,
|
|
1300
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1301
|
+
"hasDynamicHelp": true,
|
|
1302
|
+
"multiple": false,
|
|
1303
|
+
"type": "option"
|
|
1304
|
+
},
|
|
1305
|
+
"api-version": {
|
|
1306
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1307
|
+
"name": "api-version",
|
|
1308
|
+
"hasDynamicHelp": false,
|
|
1309
|
+
"multiple": false,
|
|
1310
|
+
"type": "option"
|
|
1311
|
+
},
|
|
1312
|
+
"api-name": {
|
|
1313
|
+
"char": "n",
|
|
1314
|
+
"name": "api-name",
|
|
1315
|
+
"required": true,
|
|
1316
|
+
"summary": "Path to the Agent Authoring Bundle to validate",
|
|
1317
|
+
"hasDynamicHelp": false,
|
|
1318
|
+
"multiple": false,
|
|
1319
|
+
"type": "option"
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
"hasDynamicHelp": true,
|
|
1323
|
+
"hiddenAliases": [],
|
|
1324
|
+
"id": "agent:validate:authoring-bundle",
|
|
1325
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
1326
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
1327
|
+
"pluginType": "core",
|
|
1328
|
+
"state": "beta",
|
|
1329
|
+
"strict": true,
|
|
1330
|
+
"summary": "Validate an Agent Authoring Bundle",
|
|
1331
|
+
"enableJsonFlag": true,
|
|
1332
|
+
"requiresProject": true,
|
|
1333
|
+
"isESM": true,
|
|
1334
|
+
"relativePath": [
|
|
1335
|
+
"lib",
|
|
1336
|
+
"commands",
|
|
1337
|
+
"agent",
|
|
1338
|
+
"validate",
|
|
1339
|
+
"authoring-bundle.js"
|
|
1340
|
+
],
|
|
1341
|
+
"aliasPermutations": [],
|
|
1342
|
+
"permutations": [
|
|
1343
|
+
"agent:validate:authoring-bundle",
|
|
1344
|
+
"validate:agent:authoring-bundle",
|
|
1345
|
+
"validate:authoring-bundle:agent",
|
|
1346
|
+
"agent:authoring-bundle:validate",
|
|
1347
|
+
"authoring-bundle:agent:validate",
|
|
1348
|
+
"authoring-bundle:validate:agent"
|
|
1349
|
+
]
|
|
1192
1350
|
}
|
|
1193
1351
|
},
|
|
1194
|
-
"version": "1.24.
|
|
1352
|
+
"version": "1.24.14-demo.0"
|
|
1195
1353
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
3
|
"description": "Commands to interact with Salesforce agents",
|
|
4
|
-
"version": "1.24.
|
|
4
|
+
"version": "1.24.14-demo.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@inquirer/core": "^10.2.2",
|
|
9
|
-
"@inquirer/prompts": "^7.8.
|
|
9
|
+
"@inquirer/prompts": "^7.8.6",
|
|
10
10
|
"@oclif/core": "^4",
|
|
11
|
-
"@oclif/multi-stage-output": "^0.8.
|
|
12
|
-
"@salesforce/agents": "^0.17.
|
|
13
|
-
"@salesforce/core": "^8.
|
|
11
|
+
"@oclif/multi-stage-output": "^0.8.23",
|
|
12
|
+
"@salesforce/agents": "^0.17.10",
|
|
13
|
+
"@salesforce/core": "^8.23.1",
|
|
14
14
|
"@salesforce/kit": "^3.2.3",
|
|
15
15
|
"@salesforce/sf-plugins-core": "^12.2.4",
|
|
16
16
|
"@salesforce/source-deploy-retrieve": "^12.22.1",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@oclif/plugin-command-snapshot": "^5.2.19",
|
|
28
28
|
"@oclif/test": "^4.1.0",
|
|
29
29
|
"@salesforce/cli-plugins-testkit": "^5.3.41",
|
|
30
|
-
"@salesforce/dev-scripts": "^
|
|
30
|
+
"@salesforce/dev-scripts": "^11.0.4",
|
|
31
31
|
"@salesforce/plugin-command-reference": "^3.1.67",
|
|
32
32
|
"@types/inquirer": "^9.0.9",
|
|
33
33
|
"@types/react": "^18.3.3",
|
|
@@ -47,8 +47,6 @@
|
|
|
47
47
|
"files": [
|
|
48
48
|
"/lib",
|
|
49
49
|
"/messages",
|
|
50
|
-
"/npm-shrinkwrap.json",
|
|
51
|
-
"/oclif.lock",
|
|
52
50
|
"/oclif.manifest.json",
|
|
53
51
|
"/schemas"
|
|
54
52
|
],
|
|
@@ -62,7 +60,7 @@
|
|
|
62
60
|
"sfdx",
|
|
63
61
|
"sfdx-plugin"
|
|
64
62
|
],
|
|
65
|
-
"license": "
|
|
63
|
+
"license": "Apache-2.0",
|
|
66
64
|
"oclif": {
|
|
67
65
|
"commands": "./lib/commands",
|
|
68
66
|
"bin": "sf",
|
|
@@ -98,6 +96,7 @@
|
|
|
98
96
|
"clean-all": "sf-clean all",
|
|
99
97
|
"compile": "wireit",
|
|
100
98
|
"docs": "sf-docs",
|
|
99
|
+
"fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
|
|
101
100
|
"format": "wireit",
|
|
102
101
|
"link-check": "wireit",
|
|
103
102
|
"lint": "wireit",
|
|
@@ -230,7 +229,7 @@
|
|
|
230
229
|
"exports": "./lib/index.js",
|
|
231
230
|
"type": "module",
|
|
232
231
|
"sfdx": {
|
|
233
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.
|
|
234
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.
|
|
232
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-demo.0.crt",
|
|
233
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-demo.0.sig"
|
|
235
234
|
}
|
|
236
235
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/AgentPublishAuthoringBundleResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AgentPublishAuthoringBundleResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"success": {
|
|
9
|
+
"type": "boolean"
|
|
10
|
+
},
|
|
11
|
+
"botDeveloperName": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"errors": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["success"],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/AgentValidateAuthoringBundleResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AgentValidateAuthoringBundleResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"success": {
|
|
9
|
+
"type": "boolean"
|
|
10
|
+
},
|
|
11
|
+
"errors": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": ["success"],
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|