@salesforce/plugin-agent 1.4.0 → 1.5.1
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 +67 -12
- package/lib/commands/agent/create.d.ts +1 -0
- package/lib/commands/agent/create.js +28 -19
- package/lib/commands/agent/create.js.map +1 -1
- package/lib/commands/agent/generate/spec.js +1 -1
- package/lib/commands/agent/generate/spec.js.map +1 -1
- package/lib/commands/agent/preview.d.ts +15 -0
- package/lib/commands/agent/preview.js +37 -0
- package/lib/commands/agent/preview.js.map +1 -0
- package/lib/commands/agent/test/results.d.ts +2 -1
- package/lib/commands/agent/test/results.js +11 -5
- package/lib/commands/agent/test/results.js.map +1 -1
- package/lib/commands/agent/test/resume.d.ts +2 -1
- package/lib/commands/agent/test/resume.js +11 -5
- package/lib/commands/agent/test/resume.js.map +1 -1
- package/lib/commands/agent/test/run.d.ts +2 -1
- package/lib/commands/agent/test/run.js +11 -5
- package/lib/commands/agent/test/run.js.map +1 -1
- package/lib/components/agent-preview-react.d.ts +9 -0
- package/lib/components/agent-preview-react.js +56 -0
- package/lib/components/agent-preview-react.js.map +1 -0
- package/lib/flags.d.ts +5 -1
- package/lib/flags.js +6 -1
- package/lib/flags.js.map +1 -1
- package/lib/handleTestResults.d.ts +8 -0
- package/lib/handleTestResults.js +44 -0
- package/lib/handleTestResults.js.map +1 -0
- package/messages/agent.preview.md +20 -0
- package/messages/shared.md +8 -0
- package/npm-shrinkwrap.json +12899 -5679
- package/oclif.lock +1170 -25
- package/oclif.manifest.json +103 -4
- package/package.json +13 -5
- package/schemas/agent-preview.json +9 -0
package/oclif.manifest.json
CHANGED
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"strict": true,
|
|
71
71
|
"summary": "Create an Agent from an agent spec.",
|
|
72
72
|
"enableJsonFlag": true,
|
|
73
|
+
"requiresProject": true,
|
|
73
74
|
"isESM": true,
|
|
74
75
|
"relativePath": [
|
|
75
76
|
"lib",
|
|
@@ -83,6 +84,74 @@
|
|
|
83
84
|
"create:agent"
|
|
84
85
|
]
|
|
85
86
|
},
|
|
87
|
+
"agent:preview": {
|
|
88
|
+
"aliases": [],
|
|
89
|
+
"args": {},
|
|
90
|
+
"description": "XXX",
|
|
91
|
+
"examples": [
|
|
92
|
+
"<%= config.bin %> <%= command.id %> --agent HelpDeskAgent",
|
|
93
|
+
"<%= config.bin %> <%= command.id %> --agent ConciergeAgent --target-org production"
|
|
94
|
+
],
|
|
95
|
+
"flags": {
|
|
96
|
+
"flags-dir": {
|
|
97
|
+
"helpGroup": "GLOBAL",
|
|
98
|
+
"name": "flags-dir",
|
|
99
|
+
"summary": "Import flag values from a directory.",
|
|
100
|
+
"hasDynamicHelp": false,
|
|
101
|
+
"multiple": false,
|
|
102
|
+
"type": "option"
|
|
103
|
+
},
|
|
104
|
+
"target-org": {
|
|
105
|
+
"char": "o",
|
|
106
|
+
"name": "target-org",
|
|
107
|
+
"noCacheDefault": true,
|
|
108
|
+
"required": true,
|
|
109
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
110
|
+
"hasDynamicHelp": true,
|
|
111
|
+
"multiple": false,
|
|
112
|
+
"type": "option"
|
|
113
|
+
},
|
|
114
|
+
"api-version": {
|
|
115
|
+
"description": "Override the api version used for api requests made by this command",
|
|
116
|
+
"name": "api-version",
|
|
117
|
+
"hasDynamicHelp": false,
|
|
118
|
+
"multiple": false,
|
|
119
|
+
"type": "option"
|
|
120
|
+
},
|
|
121
|
+
"name": {
|
|
122
|
+
"char": "n",
|
|
123
|
+
"description": "the API name of the agent? (TBD based on agents library)",
|
|
124
|
+
"name": "name",
|
|
125
|
+
"required": true,
|
|
126
|
+
"summary": "The name of the agent you want to preview",
|
|
127
|
+
"hasDynamicHelp": false,
|
|
128
|
+
"multiple": false,
|
|
129
|
+
"type": "option"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"hasDynamicHelp": true,
|
|
133
|
+
"hiddenAliases": [],
|
|
134
|
+
"id": "agent:preview",
|
|
135
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
136
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
137
|
+
"pluginType": "core",
|
|
138
|
+
"strict": true,
|
|
139
|
+
"summary": "Interact with an active agent, as a user would, to preview responses",
|
|
140
|
+
"enableJsonFlag": false,
|
|
141
|
+
"requiresProject": true,
|
|
142
|
+
"isESM": true,
|
|
143
|
+
"relativePath": [
|
|
144
|
+
"lib",
|
|
145
|
+
"commands",
|
|
146
|
+
"agent",
|
|
147
|
+
"preview.js"
|
|
148
|
+
],
|
|
149
|
+
"aliasPermutations": [],
|
|
150
|
+
"permutations": [
|
|
151
|
+
"agent:preview",
|
|
152
|
+
"preview:agent"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
86
155
|
"agent:generate:spec": {
|
|
87
156
|
"aliases": [],
|
|
88
157
|
"args": {},
|
|
@@ -352,9 +421,19 @@
|
|
|
352
421
|
"multiple": false,
|
|
353
422
|
"options": [
|
|
354
423
|
"json",
|
|
355
|
-
"human"
|
|
424
|
+
"human",
|
|
425
|
+
"junit"
|
|
356
426
|
],
|
|
357
427
|
"type": "option"
|
|
428
|
+
},
|
|
429
|
+
"output-dir": {
|
|
430
|
+
"char": "f",
|
|
431
|
+
"description": "If test run is complete, write the results to the specified directory. If the tests are still running, the test results will not be written.",
|
|
432
|
+
"name": "output-dir",
|
|
433
|
+
"summary": "Directory to write the test results to.",
|
|
434
|
+
"hasDynamicHelp": false,
|
|
435
|
+
"multiple": false,
|
|
436
|
+
"type": "option"
|
|
358
437
|
}
|
|
359
438
|
},
|
|
360
439
|
"hasDynamicHelp": true,
|
|
@@ -458,9 +537,19 @@
|
|
|
458
537
|
"multiple": false,
|
|
459
538
|
"options": [
|
|
460
539
|
"json",
|
|
461
|
-
"human"
|
|
540
|
+
"human",
|
|
541
|
+
"junit"
|
|
462
542
|
],
|
|
463
543
|
"type": "option"
|
|
544
|
+
},
|
|
545
|
+
"output-dir": {
|
|
546
|
+
"char": "f",
|
|
547
|
+
"description": "If test run is complete, write the results to the specified directory. If the tests are still running, the test results will not be written.",
|
|
548
|
+
"name": "output-dir",
|
|
549
|
+
"summary": "Directory to write the test results to.",
|
|
550
|
+
"hasDynamicHelp": false,
|
|
551
|
+
"multiple": false,
|
|
552
|
+
"type": "option"
|
|
464
553
|
}
|
|
465
554
|
},
|
|
466
555
|
"hasDynamicHelp": true,
|
|
@@ -558,9 +647,19 @@
|
|
|
558
647
|
"multiple": false,
|
|
559
648
|
"options": [
|
|
560
649
|
"json",
|
|
561
|
-
"human"
|
|
650
|
+
"human",
|
|
651
|
+
"junit"
|
|
562
652
|
],
|
|
563
653
|
"type": "option"
|
|
654
|
+
},
|
|
655
|
+
"output-dir": {
|
|
656
|
+
"char": "f",
|
|
657
|
+
"description": "If test run is complete, write the results to the specified directory. If the tests are still running, the test results will not be written.",
|
|
658
|
+
"name": "output-dir",
|
|
659
|
+
"summary": "Directory to write the test results to.",
|
|
660
|
+
"hasDynamicHelp": false,
|
|
661
|
+
"multiple": false,
|
|
662
|
+
"type": "option"
|
|
564
663
|
}
|
|
565
664
|
},
|
|
566
665
|
"hasDynamicHelp": true,
|
|
@@ -592,5 +691,5 @@
|
|
|
592
691
|
]
|
|
593
692
|
}
|
|
594
693
|
},
|
|
595
|
-
"version": "1.
|
|
694
|
+
"version": "1.5.1"
|
|
596
695
|
}
|
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.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -10,11 +10,14 @@
|
|
|
10
10
|
"@inquirer/select": "^4.0.1",
|
|
11
11
|
"@oclif/core": "^4",
|
|
12
12
|
"@oclif/multi-stage-output": "^0.7.12",
|
|
13
|
-
"@salesforce/agents": "^0.
|
|
13
|
+
"@salesforce/agents": "^0.4.2",
|
|
14
14
|
"@salesforce/core": "^8.8.0",
|
|
15
15
|
"@salesforce/kit": "^3.2.1",
|
|
16
16
|
"@salesforce/sf-plugins-core": "^12.1.0",
|
|
17
|
-
"ansis": "^3.3.2"
|
|
17
|
+
"ansis": "^3.3.2",
|
|
18
|
+
"ink-text-input": "^6.0.0",
|
|
19
|
+
"ink": "^5.0.1",
|
|
20
|
+
"react": "^18.3.1"
|
|
18
21
|
},
|
|
19
22
|
"devDependencies": {
|
|
20
23
|
"@oclif/plugin-command-snapshot": "^5.2.19",
|
|
@@ -22,6 +25,11 @@
|
|
|
22
25
|
"@salesforce/cli-plugins-testkit": "^5.3.35",
|
|
23
26
|
"@salesforce/dev-scripts": "^10.2.10",
|
|
24
27
|
"@salesforce/plugin-command-reference": "^3.1.29",
|
|
28
|
+
"@types/react": "^18.3.3",
|
|
29
|
+
"eslint-config-xo-react": "^0.27.0",
|
|
30
|
+
"eslint-config-xo": "^0.45.0",
|
|
31
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
32
|
+
"eslint-plugin-react": "^7.34.3",
|
|
25
33
|
"eslint-plugin-sf-plugin": "^1.20.9",
|
|
26
34
|
"oclif": "^4.15.12",
|
|
27
35
|
"ts-node": "^10.9.2",
|
|
@@ -213,7 +221,7 @@
|
|
|
213
221
|
"exports": "./lib/index.js",
|
|
214
222
|
"type": "module",
|
|
215
223
|
"sfdx": {
|
|
216
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
217
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
224
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.5.1.crt",
|
|
225
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.5.1.sig"
|
|
218
226
|
}
|
|
219
227
|
}
|