@salesforce/plugin-agent 1.24.13 → 1.24.14-demo.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/LICENSE.txt +200 -6
- package/README.md +131 -24
- 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/authoring-bundle.d.ts +22 -0
- package/lib/commands/agent/generate/authoring-bundle.js +107 -0
- package/lib/commands/agent/generate/authoring-bundle.js.map +1 -0
- 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.d.ts +1 -0
- package/lib/commands/agent/preview.js +24 -5
- 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.generate.authoring-bundle.md +39 -0
- package/messages/agent.preview.md +4 -0
- package/messages/agent.publish.authoring-bundle.md +41 -0
- package/messages/agent.validate.authoring-bundle.md +37 -0
- package/oclif.manifest.json +271 -1
- package/package.json +10 -11
- package/schemas/agent-generate-authoring__bundle.json +22 -0
- 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/LICENSE.txt
CHANGED
|
@@ -1,12 +1,206 @@
|
|
|
1
|
-
|
|
1
|
+
Apache License Version 2.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Salesforce, Inc.
|
|
2
4
|
All rights reserved.
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
Apache License
|
|
7
|
+
Version 2.0, January 2004
|
|
8
|
+
http://www.apache.org/licenses/
|
|
9
|
+
|
|
10
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
11
|
+
|
|
12
|
+
1. Definitions.
|
|
13
|
+
|
|
14
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
15
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
16
|
+
|
|
17
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
18
|
+
the copyright owner that is granting the License.
|
|
19
|
+
|
|
20
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
21
|
+
other entities that control, are controlled by, or are under common
|
|
22
|
+
control with that entity. For the purposes of this definition,
|
|
23
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
24
|
+
direction or management of such entity, whether by contract or
|
|
25
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
26
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
27
|
+
|
|
28
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
29
|
+
exercising permissions granted by this License.
|
|
30
|
+
|
|
31
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
32
|
+
including but not limited to software source code, documentation
|
|
33
|
+
source, and configuration files.
|
|
34
|
+
|
|
35
|
+
"Object" form shall mean any form resulting from mechanical
|
|
36
|
+
transformation or translation of a Source form, including but
|
|
37
|
+
not limited to compiled object code, generated documentation,
|
|
38
|
+
and conversions to other media types.
|
|
39
|
+
|
|
40
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
41
|
+
Object form, made available under the License, as indicated by a
|
|
42
|
+
copyright notice that is included in or attached to the work
|
|
43
|
+
(an example is provided in the Appendix below).
|
|
44
|
+
|
|
45
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
46
|
+
form, that is based on (or derived from) the Work and for which the
|
|
47
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
48
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
49
|
+
of this License, Derivative Works shall not include works that remain
|
|
50
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
51
|
+
the Work and Derivative Works thereof.
|
|
52
|
+
|
|
53
|
+
"Contribution" shall mean any work of authorship, including
|
|
54
|
+
the original version of the Work and any modifications or additions
|
|
55
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
56
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
57
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
58
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
59
|
+
means any form of electronic, verbal, or written communication sent
|
|
60
|
+
to the Licensor or its representatives, including but not limited to
|
|
61
|
+
communication on electronic mailing lists, source code control systems,
|
|
62
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
63
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
64
|
+
excluding communication that is conspicuously marked or otherwise
|
|
65
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
66
|
+
|
|
67
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
68
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
69
|
+
subsequently incorporated within the Work.
|
|
70
|
+
|
|
71
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
72
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
73
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
74
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
75
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
76
|
+
Work and such Derivative Works in Source or Object form.
|
|
77
|
+
|
|
78
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
79
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
80
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
81
|
+
(except as stated in this section) patent license to make, have made,
|
|
82
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
83
|
+
where such license applies only to those patent claims licensable
|
|
84
|
+
by such Contributor that are necessarily infringed by their
|
|
85
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
86
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
87
|
+
institute patent litigation against any entity (including a
|
|
88
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
89
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
90
|
+
or contributory patent infringement, then any patent licenses
|
|
91
|
+
granted to You under this License for that Work shall terminate
|
|
92
|
+
as of the date such litigation is filed.
|
|
93
|
+
|
|
94
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
95
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
96
|
+
modifications, and in Source or Object form, provided that You
|
|
97
|
+
meet the following conditions:
|
|
98
|
+
|
|
99
|
+
(a) You must give any other recipients of the Work or
|
|
100
|
+
Derivative Works a copy of this License; and
|
|
101
|
+
|
|
102
|
+
(b) You must cause any modified files to carry prominent notices
|
|
103
|
+
stating that You changed the files; and
|
|
104
|
+
|
|
105
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
106
|
+
that You distribute, all copyright, patent, trademark, and
|
|
107
|
+
attribution notices from the Source form of the Work,
|
|
108
|
+
excluding those notices that do not pertain to any part of
|
|
109
|
+
the Derivative Works; and
|
|
110
|
+
|
|
111
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
112
|
+
distribution, then any Derivative Works that You distribute must
|
|
113
|
+
include a readable copy of the attribution notices contained
|
|
114
|
+
within such NOTICE file, excluding those notices that do not
|
|
115
|
+
pertain to any part of the Derivative Works, in at least one
|
|
116
|
+
of the following places: within a NOTICE text file distributed
|
|
117
|
+
as part of the Derivative Works; within the Source form or
|
|
118
|
+
documentation, if provided along with the Derivative Works; or,
|
|
119
|
+
within a display generated by the Derivative Works, if and
|
|
120
|
+
wherever such third-party notices normally appear. The contents
|
|
121
|
+
of the NOTICE file are for informational purposes only and
|
|
122
|
+
do not modify the License. You may add Your own attribution
|
|
123
|
+
notices within Derivative Works that You distribute, alongside
|
|
124
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
125
|
+
that such additional attribution notices cannot be construed
|
|
126
|
+
as modifying the License.
|
|
127
|
+
|
|
128
|
+
You may add Your own copyright statement to Your modifications and
|
|
129
|
+
may provide additional or different license terms and conditions
|
|
130
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
131
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
132
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
133
|
+
the conditions stated in this License.
|
|
134
|
+
|
|
135
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
136
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
137
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
138
|
+
this License, without any additional terms or conditions.
|
|
139
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
140
|
+
the terms of any separate license agreement you may have executed
|
|
141
|
+
with Licensor regarding such Contributions.
|
|
142
|
+
|
|
143
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
144
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
145
|
+
except as required for reasonable and customary use in describing the
|
|
146
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
147
|
+
|
|
148
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
149
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
150
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
151
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
152
|
+
implied, including, without limitation, any warranties or conditions
|
|
153
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
154
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
155
|
+
appropriateness of using or redistributing the Work and assume any
|
|
156
|
+
risks associated with Your exercise of permissions under this License.
|
|
157
|
+
|
|
158
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
159
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
160
|
+
unless required by applicable law (such as deliberate and grossly
|
|
161
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
162
|
+
liable to You for damages, including any direct, indirect, special,
|
|
163
|
+
incidental, or consequential damages of any character arising as a
|
|
164
|
+
result of this License or out of the use or inability to use the
|
|
165
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
166
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
167
|
+
other commercial damages or losses), even if such Contributor
|
|
168
|
+
has been advised of the possibility of such damages.
|
|
169
|
+
|
|
170
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
171
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
172
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
173
|
+
or other liability obligations and/or rights consistent with this
|
|
174
|
+
License. However, in accepting such obligations, You may act only
|
|
175
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
176
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
177
|
+
defend, and hold each Contributor harmless for any liability
|
|
178
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
179
|
+
of your accepting any such warranty or additional liability.
|
|
180
|
+
|
|
181
|
+
END OF TERMS AND CONDITIONS
|
|
182
|
+
|
|
183
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
184
|
+
|
|
185
|
+
To apply the Apache License to your work, attach the following
|
|
186
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
187
|
+
replaced with your own identifying information. (Don't include
|
|
188
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
189
|
+
comment syntax for the file format. We also recommend that a
|
|
190
|
+
file or class name and description of purpose be included on the
|
|
191
|
+
same "printed page" as the copyright notice for easier
|
|
192
|
+
identification within third-party archives.
|
|
5
193
|
|
|
6
|
-
|
|
194
|
+
Copyright {yyyy} {name of copyright owner}
|
|
7
195
|
|
|
8
|
-
|
|
196
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
197
|
+
you may not use this file except in compliance with the License.
|
|
198
|
+
You may obtain a copy of the License at
|
|
9
199
|
|
|
10
|
-
|
|
200
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
201
|
|
|
12
|
-
|
|
202
|
+
Unless required by applicable law or agreed to in writing, software
|
|
203
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
204
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
205
|
+
See the License for the specific language governing permissions and
|
|
206
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# plugin-agent
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@salesforce/plugin-agent) [](https://npmjs.org/package/@salesforce/plugin-agent) [](https://www.npmjs.com/package/@salesforce/plugin-agent) [](https://npmjs.org/package/@salesforce/plugin-agent) [](https://opensource.org/license/apache-2-0)
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -63,14 +63,17 @@ sf plugins
|
|
|
63
63
|
- [`sf agent create`](#sf-agent-create)
|
|
64
64
|
- [`sf agent deactivate`](#sf-agent-deactivate)
|
|
65
65
|
- [`sf agent generate agent-spec`](#sf-agent-generate-agent-spec)
|
|
66
|
+
- [`sf agent generate authoring-bundle`](#sf-agent-generate-authoring-bundle)
|
|
66
67
|
- [`sf agent generate template`](#sf-agent-generate-template)
|
|
67
68
|
- [`sf agent generate test-spec`](#sf-agent-generate-test-spec)
|
|
68
69
|
- [`sf agent preview`](#sf-agent-preview)
|
|
70
|
+
- [`sf agent publish authoring-bundle`](#sf-agent-publish-authoring-bundle)
|
|
69
71
|
- [`sf agent test create`](#sf-agent-test-create)
|
|
70
72
|
- [`sf agent test list`](#sf-agent-test-list)
|
|
71
73
|
- [`sf agent test results`](#sf-agent-test-results)
|
|
72
74
|
- [`sf agent test resume`](#sf-agent-test-resume)
|
|
73
75
|
- [`sf agent test run`](#sf-agent-test-run)
|
|
76
|
+
- [`sf agent validate authoring-bundle`](#sf-agent-validate-authoring-bundle)
|
|
74
77
|
|
|
75
78
|
## `sf agent activate`
|
|
76
79
|
|
|
@@ -109,7 +112,7 @@ EXAMPLES
|
|
|
109
112
|
$ sf agent activate --api-name Resort_Manager --target-org my-org
|
|
110
113
|
```
|
|
111
114
|
|
|
112
|
-
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
115
|
+
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/activate.ts)_
|
|
113
116
|
|
|
114
117
|
## `sf agent create`
|
|
115
118
|
|
|
@@ -171,7 +174,7 @@ EXAMPLES
|
|
|
171
174
|
$ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
|
|
172
175
|
```
|
|
173
176
|
|
|
174
|
-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
177
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/create.ts)_
|
|
175
178
|
|
|
176
179
|
## `sf agent deactivate`
|
|
177
180
|
|
|
@@ -211,7 +214,7 @@ EXAMPLES
|
|
|
211
214
|
$ sf agent deactivate --api-name Resort_Manager --target-org my-org
|
|
212
215
|
```
|
|
213
216
|
|
|
214
|
-
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
217
|
+
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/deactivate.ts)_
|
|
215
218
|
|
|
216
219
|
## `sf agent generate agent-spec`
|
|
217
220
|
|
|
@@ -316,7 +319,46 @@ EXAMPLES
|
|
|
316
319
|
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
|
|
317
320
|
```
|
|
318
321
|
|
|
319
|
-
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
322
|
+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/generate/agent-spec.ts)_
|
|
323
|
+
|
|
324
|
+
## `sf agent generate authoring-bundle`
|
|
325
|
+
|
|
326
|
+
Generate an authoring bundle from an agent specification.
|
|
327
|
+
|
|
328
|
+
```
|
|
329
|
+
USAGE
|
|
330
|
+
$ sf agent generate authoring-bundle -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-f <value>] [-d <value>]
|
|
331
|
+
[-n <value>]
|
|
332
|
+
|
|
333
|
+
FLAGS
|
|
334
|
+
-d, --output-dir=<value> Directory where the authoring bundle files will be generated.
|
|
335
|
+
-f, --spec=<value> Path to the agent specification file.
|
|
336
|
+
-n, --name=<value> Name (label) of the authoring bundle. If not provided, you will be prompted for it.
|
|
337
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
338
|
+
configuration variable is already set.
|
|
339
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
340
|
+
|
|
341
|
+
GLOBAL FLAGS
|
|
342
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
343
|
+
--json Format output as json.
|
|
344
|
+
|
|
345
|
+
DESCRIPTION
|
|
346
|
+
Generate an authoring bundle from an agent specification.
|
|
347
|
+
|
|
348
|
+
Generates an authoring bundle containing AFScript and its meta.xml file from an agent specification file.
|
|
349
|
+
|
|
350
|
+
EXAMPLES
|
|
351
|
+
Generate an authoring bundle from a specification file:
|
|
352
|
+
|
|
353
|
+
$ sf agent generate authoring-bundle --spec-file path/to/spec.yaml --name "My Authoring Bundle"
|
|
354
|
+
|
|
355
|
+
Generate an authoring bundle with a custom output directory:
|
|
356
|
+
|
|
357
|
+
$ sf agent generate authoring-bundle --spec-file path/to/spec.yaml --name "My Authoring Bundle" --output-dir \
|
|
358
|
+
path/to/output
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/generate/authoring-bundle.ts)_
|
|
320
362
|
|
|
321
363
|
## `sf agent generate template`
|
|
322
364
|
|
|
@@ -364,7 +406,7 @@ EXAMPLES
|
|
|
364
406
|
force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
|
|
365
407
|
```
|
|
366
408
|
|
|
367
|
-
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
409
|
+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/generate/template.ts)_
|
|
368
410
|
|
|
369
411
|
## `sf agent generate test-spec`
|
|
370
412
|
|
|
@@ -425,7 +467,7 @@ EXAMPLES
|
|
|
425
467
|
force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
|
|
426
468
|
```
|
|
427
469
|
|
|
428
|
-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
470
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/generate/test-spec.ts)_
|
|
429
471
|
|
|
430
472
|
## `sf agent preview`
|
|
431
473
|
|
|
@@ -433,19 +475,21 @@ Interact with an active agent to preview how the agent responds to your statemen
|
|
|
433
475
|
|
|
434
476
|
```
|
|
435
477
|
USAGE
|
|
436
|
-
$ sf agent preview (-c <value> -o <value>) [--flags-dir <value>] [--api-version <value>] [-n <value>]
|
|
437
|
-
<value>] [-x]
|
|
478
|
+
$ sf agent preview (-c <value> -o <value>) [--flags-dir <value>] [--api-version <value>] [-n <value>]
|
|
479
|
+
[--authoring-bundle <value>] [-d <value>] [-x]
|
|
438
480
|
|
|
439
481
|
FLAGS
|
|
440
|
-
-c, --client-app=<value>
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
-d, --output-dir=<value>
|
|
444
|
-
-n, --api-name=<value>
|
|
445
|
-
-o, --target-org=<value>
|
|
446
|
-
|
|
447
|
-
-x, --apex-debug
|
|
448
|
-
--api-version=<value>
|
|
482
|
+
-c, --client-app=<value> (required) Name of the linked client app to use for the agent connection. You must
|
|
483
|
+
have previously created this link with "org login web --client-app". Run "org display"
|
|
484
|
+
to see the available linked client apps.
|
|
485
|
+
-d, --output-dir=<value> Directory where conversation transcripts are saved.
|
|
486
|
+
-n, --api-name=<value> API name of the agent you want to interact with.
|
|
487
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
488
|
+
configuration variable is already set.
|
|
489
|
+
-x, --apex-debug Enable Apex debug logging during the agent preview conversation.
|
|
490
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
491
|
+
--authoring-bundle=<value> Preview an ephemeral afscript agent by specifying the API name of the Authoring Bundle
|
|
492
|
+
metadata
|
|
449
493
|
|
|
450
494
|
GLOBAL FLAGS
|
|
451
495
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -489,7 +533,39 @@ EXAMPLES
|
|
|
489
533
|
transcripts/my-preview
|
|
490
534
|
```
|
|
491
535
|
|
|
492
|
-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
536
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/preview.ts)_
|
|
537
|
+
|
|
538
|
+
## `sf agent publish authoring-bundle`
|
|
539
|
+
|
|
540
|
+
Publish an Agent Authoring Bundle as a new agent
|
|
541
|
+
|
|
542
|
+
```
|
|
543
|
+
USAGE
|
|
544
|
+
$ sf agent publish authoring-bundle -o <value> -n <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
545
|
+
|
|
546
|
+
FLAGS
|
|
547
|
+
-n, --api-name=<value> (required) API name of the Agent Authoring Bundle to publish
|
|
548
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
549
|
+
configuration variable is already set.
|
|
550
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
551
|
+
|
|
552
|
+
GLOBAL FLAGS
|
|
553
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
554
|
+
--json Format output as json.
|
|
555
|
+
|
|
556
|
+
DESCRIPTION
|
|
557
|
+
Publish an Agent Authoring Bundle as a new agent
|
|
558
|
+
|
|
559
|
+
Publishes an Agent Authoring Bundle by compiling the AF script and creating a new agent in your org.
|
|
560
|
+
|
|
561
|
+
EXAMPLES
|
|
562
|
+
Publish an Agent Authoring Bundle:
|
|
563
|
+
|
|
564
|
+
$ sf agent publish authoring-bundle --api-name path/to/bundle --agent-name "My New Agent" --target-org \
|
|
565
|
+
myorg@example.com
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/publish/authoring-bundle.ts)_
|
|
493
569
|
|
|
494
570
|
## `sf agent test create`
|
|
495
571
|
|
|
@@ -544,7 +620,7 @@ EXAMPLES
|
|
|
544
620
|
$ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
|
|
545
621
|
```
|
|
546
622
|
|
|
547
|
-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
623
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/test/create.ts)_
|
|
548
624
|
|
|
549
625
|
## `sf agent test list`
|
|
550
626
|
|
|
@@ -579,7 +655,7 @@ EXAMPLES
|
|
|
579
655
|
$ sf agent test list --target-org my-org
|
|
580
656
|
```
|
|
581
657
|
|
|
582
|
-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
658
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/test/list.ts)_
|
|
583
659
|
|
|
584
660
|
## `sf agent test results`
|
|
585
661
|
|
|
@@ -645,7 +721,7 @@ FLAG DESCRIPTIONS
|
|
|
645
721
|
expression when using custom evaluations.
|
|
646
722
|
```
|
|
647
723
|
|
|
648
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
724
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/test/results.ts)_
|
|
649
725
|
|
|
650
726
|
## `sf agent test resume`
|
|
651
727
|
|
|
@@ -718,7 +794,7 @@ FLAG DESCRIPTIONS
|
|
|
718
794
|
expression when using custom evaluations.
|
|
719
795
|
```
|
|
720
796
|
|
|
721
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
797
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/test/resume.ts)_
|
|
722
798
|
|
|
723
799
|
## `sf agent test run`
|
|
724
800
|
|
|
@@ -792,6 +868,37 @@ FLAG DESCRIPTIONS
|
|
|
792
868
|
expression when using custom evaluations.
|
|
793
869
|
```
|
|
794
870
|
|
|
795
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.
|
|
871
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/test/run.ts)_
|
|
872
|
+
|
|
873
|
+
## `sf agent validate authoring-bundle`
|
|
874
|
+
|
|
875
|
+
Validate an Agent Authoring Bundle
|
|
876
|
+
|
|
877
|
+
```
|
|
878
|
+
USAGE
|
|
879
|
+
$ sf agent validate authoring-bundle -o <value> -n <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
880
|
+
|
|
881
|
+
FLAGS
|
|
882
|
+
-n, --api-name=<value> (required) Path to the Agent Authoring Bundle to validate
|
|
883
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
884
|
+
configuration variable is already set.
|
|
885
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
886
|
+
|
|
887
|
+
GLOBAL FLAGS
|
|
888
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
889
|
+
--json Format output as json.
|
|
890
|
+
|
|
891
|
+
DESCRIPTION
|
|
892
|
+
Validate an Agent Authoring Bundle
|
|
893
|
+
|
|
894
|
+
Validates an Agent Authoring Bundle by compiling the AF script and checking for errors.
|
|
895
|
+
|
|
896
|
+
EXAMPLES
|
|
897
|
+
Validate an Agent Authoring Bundle:
|
|
898
|
+
|
|
899
|
+
$ sf agent validate authoring-bundle --api-name path/to/bundle
|
|
900
|
+
```
|
|
901
|
+
|
|
902
|
+
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.1/src/commands/agent/validate/authoring-bundle.ts)_
|
|
796
903
|
|
|
797
904
|
<!-- commandsstop -->
|
package/lib/agentActivation.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { Messages, SfError } from '@salesforce/core';
|
|
8
17
|
import { Agent } from '@salesforce/agents';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentActivation.js","sourceRoot":"","sources":["../src/agentActivation.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"agentActivation.js","sourceRoot":"","sources":["../src/agentActivation.ts"],"names":[],"mappings":"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"}
|
package/lib/agentTestCache.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { Global, SfError, TTLConfig } from '@salesforce/core';
|
|
8
17
|
import { Duration } from '@salesforce/kit';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentTestCache.js","sourceRoot":"","sources":["../src/agentTestCache.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"agentTestCache.js","sourceRoot":"","sources":["../src/agentTestCache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAW3C,MAAM,OAAO,cAAe,SAAQ,SAA2C;IACtE,MAAM,CAAC,WAAW;QACvB,OAAO,uBAAuB,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,iBAAiB;QAC7B,OAAO;YACL,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,cAAc,CAAC,WAAW,EAAE;YACtC,WAAW,EAAE,MAAM,CAAC,eAAe;YACnC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;SACtB,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAC3B,KAAa,EACb,IAAY,EACZ,SAAkB,EAClB,YAA2B;QAE3B,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,OAAO,CAAC,2CAA2C,CAAC,CAAC;QAE3E,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAC,KAAa;QACzC,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,OAAO,CAAC,2CAA2C,CAAC,CAAC;QAE3E,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAClB,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAEM,gBAAgB;QACrB,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,IAAI,CAAC,GAAG;YAAE,MAAM,IAAI,OAAO,CAAC,kCAAkC,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;IAEM,iBAAiB,CACtB,KAAyB,EACzB,aAAsB;QAEtB,IAAI,KAAK,IAAI,aAAa,EAAE,CAAC;YAC3B,MAAM,IAAI,OAAO,CAAC,sDAAsD,CAAC,CAAC;QAC5E,CAAC;QAED,IAAI,CAAC,KAAK,IAAI,CAAC,aAAa,EAAE,CAAC;YAC7B,MAAM,IAAI,OAAO,CAAC,qDAAqD,CAAC,CAAC;QAC3E,CAAC;QAED,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;QACvD,CAAC;QAED,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;CACF"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
8
17
|
import { Messages } from '@salesforce/core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activate.js","sourceRoot":"","sources":["../../../src/commands/agent/activate.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"activate.js","sourceRoot":"","sources":["../../../src/commands/agent/activate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,gBAAgB,CAAC,CAAC;AAErF,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAe;IACjD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,CAAU,KAAK,GAAG;QAC7B,YAAY,EAAE,KAAK,CAAC,WAAW,EAAE;QACjC,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE;QACpC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC;YACvB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;YACtD,IAAI,EAAE,GAAG;SACV,CAAC;KACH,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAElD,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;QACtC,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;QACtC,MAAM,IAAI,GAAG,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QAE3D,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACvC,MAAM,QAAQ,CAAC,WAAW,CAAC,4BAA4B,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;QACzE,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,qBAAqB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC;QAC9F,MAAM,KAAK,CAAC,QAAQ,EAAE,CAAC;QACvB,MAAM,SAAS,GAAG,CAAC,MAAM,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,aAAa,CAAC;QAE/D,IAAI,CAAC,GAAG,CAAC,SAAS,SAAS,aAAa,CAAC,CAAC;IAC5C,CAAC"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { resolve } from 'node:path';
|
|
8
17
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|