@salesforce/plugin-agent 1.24.35 → 1.25.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.
Files changed (74) hide show
  1. package/LICENSE.txt +200 -6
  2. package/README.md +240 -55
  3. package/lib/agentActivation.js +13 -4
  4. package/lib/agentActivation.js.map +1 -1
  5. package/lib/agentTestCache.js +13 -4
  6. package/lib/agentTestCache.js.map +1 -1
  7. package/lib/commands/agent/activate.js +13 -4
  8. package/lib/commands/agent/activate.js.map +1 -1
  9. package/lib/commands/agent/create.js +13 -4
  10. package/lib/commands/agent/create.js.map +1 -1
  11. package/lib/commands/agent/deactivate.js +13 -4
  12. package/lib/commands/agent/deactivate.js.map +1 -1
  13. package/lib/commands/agent/generate/agent-spec.js +13 -4
  14. package/lib/commands/agent/generate/agent-spec.js.map +1 -1
  15. package/lib/commands/agent/generate/authoring-bundle.d.ts +23 -0
  16. package/lib/commands/agent/generate/authoring-bundle.js +140 -0
  17. package/lib/commands/agent/generate/authoring-bundle.js.map +1 -0
  18. package/lib/commands/agent/generate/template.js +13 -4
  19. package/lib/commands/agent/generate/template.js.map +1 -1
  20. package/lib/commands/agent/generate/test-spec.js +13 -4
  21. package/lib/commands/agent/generate/test-spec.js.map +1 -1
  22. package/lib/commands/agent/preview.d.ts +6 -12
  23. package/lib/commands/agent/preview.js +130 -67
  24. package/lib/commands/agent/preview.js.map +1 -1
  25. package/lib/commands/agent/publish/authoring-bundle.d.ts +20 -0
  26. package/lib/commands/agent/publish/authoring-bundle.js +154 -0
  27. package/lib/commands/agent/publish/authoring-bundle.js.map +1 -0
  28. package/lib/commands/agent/test/create.js +13 -4
  29. package/lib/commands/agent/test/create.js.map +1 -1
  30. package/lib/commands/agent/test/list.js +13 -4
  31. package/lib/commands/agent/test/list.js.map +1 -1
  32. package/lib/commands/agent/test/results.js +13 -4
  33. package/lib/commands/agent/test/results.js.map +1 -1
  34. package/lib/commands/agent/test/resume.js +13 -4
  35. package/lib/commands/agent/test/resume.js.map +1 -1
  36. package/lib/commands/agent/test/run.js +14 -4
  37. package/lib/commands/agent/test/run.js.map +1 -1
  38. package/lib/commands/agent/validate/authoring-bundle.d.ts +19 -0
  39. package/lib/commands/agent/validate/authoring-bundle.js +128 -0
  40. package/lib/commands/agent/validate/authoring-bundle.js.map +1 -0
  41. package/lib/common.d.ts +8 -0
  42. package/lib/common.js +39 -0
  43. package/lib/common.js.map +1 -0
  44. package/lib/components/agent-preview-react.d.ts +9 -2
  45. package/lib/components/agent-preview-react.js +188 -62
  46. package/lib/components/agent-preview-react.js.map +1 -1
  47. package/lib/flags.d.ts +6 -2
  48. package/lib/flags.js +55 -20
  49. package/lib/flags.js.map +1 -1
  50. package/lib/handleTestResults.js +13 -4
  51. package/lib/handleTestResults.js.map +1 -1
  52. package/lib/index.js +13 -4
  53. package/lib/index.js.map +1 -1
  54. package/lib/inquirer-theme.js +13 -4
  55. package/lib/inquirer-theme.js.map +1 -1
  56. package/lib/testStages.js +13 -4
  57. package/lib/testStages.js.map +1 -1
  58. package/lib/yes-no-cancel.js +13 -4
  59. package/lib/yes-no-cancel.js.map +1 -1
  60. package/messages/agent.create.md +2 -0
  61. package/messages/agent.generate.agent-spec.md +2 -2
  62. package/messages/agent.generate.authoring-bundle.md +69 -0
  63. package/messages/agent.preview.md +25 -12
  64. package/messages/agent.publish.authoring-bundle.md +50 -0
  65. package/messages/agent.test.run.md +4 -0
  66. package/messages/agent.validate.authoring-bundle.md +50 -0
  67. package/oclif.manifest.json +311 -10
  68. package/package.json +17 -10
  69. package/schemas/agent-generate-agent__spec.json +1 -1
  70. package/schemas/agent-generate-authoring__bundle.json +22 -0
  71. package/schemas/agent-publish-authoring__bundle.json +25 -0
  72. package/schemas/agent-validate-authoring__bundle.json +22 -0
  73. package/npm-shrinkwrap.json +0 -17457
  74. package/oclif.lock +0 -9156
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.35",
4
+ "version": "1.25.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -9,14 +9,15 @@
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.18.2",
13
- "@salesforce/core": "^8.23.2",
12
+ "@salesforce/agents": "^0.19.4",
13
+ "@salesforce/core": "^8.23.7",
14
14
  "@salesforce/kit": "^3.2.3",
15
15
  "@salesforce/sf-plugins-core": "^12.2.6",
16
16
  "@salesforce/source-deploy-retrieve": "^12.30.0",
17
17
  "@salesforce/types": "^1.5.0",
18
18
  "ansis": "^3.3.2",
19
19
  "fast-xml-parser": "^4.5.1",
20
+ "glob": "^11.0.3",
20
21
  "ink": "5.0.1",
21
22
  "ink-text-input": "^6.0.0",
22
23
  "inquirer-autocomplete-standalone": "^0.8.1",
@@ -27,7 +28,7 @@
27
28
  "@oclif/plugin-command-snapshot": "^5.3.8",
28
29
  "@oclif/test": "^4.1.15",
29
30
  "@salesforce/cli-plugins-testkit": "^5.3.41",
30
- "@salesforce/dev-scripts": "^10.2.12",
31
+ "@salesforce/dev-scripts": "^11.0.4",
31
32
  "@salesforce/plugin-command-reference": "^3.1.78",
32
33
  "@types/inquirer": "^9.0.9",
33
34
  "@types/react": "^18.3.3",
@@ -47,8 +48,6 @@
47
48
  "files": [
48
49
  "/lib",
49
50
  "/messages",
50
- "/npm-shrinkwrap.json",
51
- "/oclif.lock",
52
51
  "/oclif.manifest.json",
53
52
  "/schemas"
54
53
  ],
@@ -62,7 +61,7 @@
62
61
  "sfdx",
63
62
  "sfdx-plugin"
64
63
  ],
65
- "license": "BSD-3-Clause",
64
+ "license": "Apache-2.0",
66
65
  "oclif": {
67
66
  "commands": "./lib/commands",
68
67
  "bin": "sf",
@@ -78,12 +77,19 @@
78
77
  "external": true,
79
78
  "subtopics": {
80
79
  "test": {
80
+ "description": "Commands to test agents.",
81
+ "external": true
82
+ },
83
+ "publish": {
84
+ "description": "Command to publish agents to an org.",
81
85
  "external": true
82
86
  },
83
87
  "generate": {
88
+ "description": "Commands to generate agent artifacts, such as the agent spec YAML file, authoring bundle, and test spec file.",
84
89
  "external": true
85
90
  },
86
- "create": {
91
+ "validate": {
92
+ "description": "Command to validate an Agent Script file.",
87
93
  "external": true
88
94
  }
89
95
  }
@@ -98,6 +104,7 @@
98
104
  "clean-all": "sf-clean all",
99
105
  "compile": "wireit",
100
106
  "docs": "sf-docs",
107
+ "fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
101
108
  "format": "wireit",
102
109
  "link-check": "wireit",
103
110
  "lint": "wireit",
@@ -230,7 +237,7 @@
230
237
  "exports": "./lib/index.js",
231
238
  "type": "module",
232
239
  "sfdx": {
233
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.35.crt",
234
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.35.sig"
240
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.25.0.crt",
241
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.25.0.sig"
235
242
  }
236
243
  }
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "AgentType": {
71
71
  "type": "string",
72
- "enum": ["customer", "internal"]
72
+ "enum": ["customer", "internal", "AGENT"]
73
73
  }
74
74
  }
75
75
  }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentGenerateAuthoringBundleResult",
4
+ "definitions": {
5
+ "AgentGenerateAuthoringBundleResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "agentPath": {
9
+ "type": "string"
10
+ },
11
+ "metaXmlPath": {
12
+ "type": "string"
13
+ },
14
+ "outputDir": {
15
+ "type": "string"
16
+ }
17
+ },
18
+ "required": ["agentPath", "metaXmlPath", "outputDir"],
19
+ "additionalProperties": false
20
+ }
21
+ }
22
+ }
@@ -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
+ }