@salesforce/plugin-agent 1.4.0 → 1.5.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/README.md +67 -12
- 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 +12285 -5604
- package/oclif.lock +821 -12
- package/oclif.manifest.json +102 -4
- package/package.json +13 -5
- package/schemas/agent-preview.json +9 -0
package/oclif.manifest.json
CHANGED
|
@@ -83,6 +83,74 @@
|
|
|
83
83
|
"create:agent"
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
+
"agent:preview": {
|
|
87
|
+
"aliases": [],
|
|
88
|
+
"args": {},
|
|
89
|
+
"description": "XXX",
|
|
90
|
+
"examples": [
|
|
91
|
+
"<%= config.bin %> <%= command.id %> --agent HelpDeskAgent",
|
|
92
|
+
"<%= config.bin %> <%= command.id %> --agent ConciergeAgent --target-org production"
|
|
93
|
+
],
|
|
94
|
+
"flags": {
|
|
95
|
+
"flags-dir": {
|
|
96
|
+
"helpGroup": "GLOBAL",
|
|
97
|
+
"name": "flags-dir",
|
|
98
|
+
"summary": "Import flag values from a directory.",
|
|
99
|
+
"hasDynamicHelp": false,
|
|
100
|
+
"multiple": false,
|
|
101
|
+
"type": "option"
|
|
102
|
+
},
|
|
103
|
+
"target-org": {
|
|
104
|
+
"char": "o",
|
|
105
|
+
"name": "target-org",
|
|
106
|
+
"noCacheDefault": true,
|
|
107
|
+
"required": true,
|
|
108
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
109
|
+
"hasDynamicHelp": true,
|
|
110
|
+
"multiple": false,
|
|
111
|
+
"type": "option"
|
|
112
|
+
},
|
|
113
|
+
"api-version": {
|
|
114
|
+
"description": "Override the api version used for api requests made by this command",
|
|
115
|
+
"name": "api-version",
|
|
116
|
+
"hasDynamicHelp": false,
|
|
117
|
+
"multiple": false,
|
|
118
|
+
"type": "option"
|
|
119
|
+
},
|
|
120
|
+
"name": {
|
|
121
|
+
"char": "n",
|
|
122
|
+
"description": "the API name of the agent? (TBD based on agents library)",
|
|
123
|
+
"name": "name",
|
|
124
|
+
"required": true,
|
|
125
|
+
"summary": "The name of the agent you want to preview",
|
|
126
|
+
"hasDynamicHelp": false,
|
|
127
|
+
"multiple": false,
|
|
128
|
+
"type": "option"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"hasDynamicHelp": true,
|
|
132
|
+
"hiddenAliases": [],
|
|
133
|
+
"id": "agent:preview",
|
|
134
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
135
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
136
|
+
"pluginType": "core",
|
|
137
|
+
"strict": true,
|
|
138
|
+
"summary": "Interact with an active agent, as a user would, to preview responses",
|
|
139
|
+
"enableJsonFlag": false,
|
|
140
|
+
"requiresProject": true,
|
|
141
|
+
"isESM": true,
|
|
142
|
+
"relativePath": [
|
|
143
|
+
"lib",
|
|
144
|
+
"commands",
|
|
145
|
+
"agent",
|
|
146
|
+
"preview.js"
|
|
147
|
+
],
|
|
148
|
+
"aliasPermutations": [],
|
|
149
|
+
"permutations": [
|
|
150
|
+
"agent:preview",
|
|
151
|
+
"preview:agent"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
86
154
|
"agent:generate:spec": {
|
|
87
155
|
"aliases": [],
|
|
88
156
|
"args": {},
|
|
@@ -352,9 +420,19 @@
|
|
|
352
420
|
"multiple": false,
|
|
353
421
|
"options": [
|
|
354
422
|
"json",
|
|
355
|
-
"human"
|
|
423
|
+
"human",
|
|
424
|
+
"junit"
|
|
356
425
|
],
|
|
357
426
|
"type": "option"
|
|
427
|
+
},
|
|
428
|
+
"output-dir": {
|
|
429
|
+
"char": "f",
|
|
430
|
+
"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.",
|
|
431
|
+
"name": "output-dir",
|
|
432
|
+
"summary": "Directory to write the test results to.",
|
|
433
|
+
"hasDynamicHelp": false,
|
|
434
|
+
"multiple": false,
|
|
435
|
+
"type": "option"
|
|
358
436
|
}
|
|
359
437
|
},
|
|
360
438
|
"hasDynamicHelp": true,
|
|
@@ -458,9 +536,19 @@
|
|
|
458
536
|
"multiple": false,
|
|
459
537
|
"options": [
|
|
460
538
|
"json",
|
|
461
|
-
"human"
|
|
539
|
+
"human",
|
|
540
|
+
"junit"
|
|
462
541
|
],
|
|
463
542
|
"type": "option"
|
|
543
|
+
},
|
|
544
|
+
"output-dir": {
|
|
545
|
+
"char": "f",
|
|
546
|
+
"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.",
|
|
547
|
+
"name": "output-dir",
|
|
548
|
+
"summary": "Directory to write the test results to.",
|
|
549
|
+
"hasDynamicHelp": false,
|
|
550
|
+
"multiple": false,
|
|
551
|
+
"type": "option"
|
|
464
552
|
}
|
|
465
553
|
},
|
|
466
554
|
"hasDynamicHelp": true,
|
|
@@ -558,9 +646,19 @@
|
|
|
558
646
|
"multiple": false,
|
|
559
647
|
"options": [
|
|
560
648
|
"json",
|
|
561
|
-
"human"
|
|
649
|
+
"human",
|
|
650
|
+
"junit"
|
|
562
651
|
],
|
|
563
652
|
"type": "option"
|
|
653
|
+
},
|
|
654
|
+
"output-dir": {
|
|
655
|
+
"char": "f",
|
|
656
|
+
"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.",
|
|
657
|
+
"name": "output-dir",
|
|
658
|
+
"summary": "Directory to write the test results to.",
|
|
659
|
+
"hasDynamicHelp": false,
|
|
660
|
+
"multiple": false,
|
|
661
|
+
"type": "option"
|
|
564
662
|
}
|
|
565
663
|
},
|
|
566
664
|
"hasDynamicHelp": true,
|
|
@@ -592,5 +690,5 @@
|
|
|
592
690
|
]
|
|
593
691
|
}
|
|
594
692
|
},
|
|
595
|
-
"version": "1.
|
|
693
|
+
"version": "1.5.0"
|
|
596
694
|
}
|
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.0",
|
|
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.0",
|
|
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.0.crt",
|
|
225
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.5.0.sig"
|
|
218
226
|
}
|
|
219
227
|
}
|