@salesforce/plugin-agent 1.24.14-demo.9 → 1.24.14
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 +6 -200
- package/README.md +26 -161
- package/lib/agentActivation.js +4 -13
- package/lib/agentActivation.js.map +1 -1
- package/lib/agentTestCache.js +4 -13
- package/lib/agentTestCache.js.map +1 -1
- package/lib/commands/agent/activate.js +4 -13
- package/lib/commands/agent/activate.js.map +1 -1
- package/lib/commands/agent/create.js +4 -13
- package/lib/commands/agent/create.js.map +1 -1
- package/lib/commands/agent/deactivate.js +4 -13
- package/lib/commands/agent/deactivate.js.map +1 -1
- package/lib/commands/agent/generate/agent-spec.js +4 -13
- package/lib/commands/agent/generate/agent-spec.js.map +1 -1
- package/lib/commands/agent/generate/template.js +4 -13
- package/lib/commands/agent/generate/template.js.map +1 -1
- package/lib/commands/agent/generate/test-spec.js +4 -13
- package/lib/commands/agent/generate/test-spec.js.map +1 -1
- package/lib/commands/agent/preview.d.ts +2 -2
- package/lib/commands/agent/preview.js +8 -30
- package/lib/commands/agent/preview.js.map +1 -1
- package/lib/commands/agent/test/create.js +4 -13
- package/lib/commands/agent/test/create.js.map +1 -1
- package/lib/commands/agent/test/list.js +4 -13
- package/lib/commands/agent/test/list.js.map +1 -1
- package/lib/commands/agent/test/results.js +4 -13
- package/lib/commands/agent/test/results.js.map +1 -1
- package/lib/commands/agent/test/resume.js +4 -13
- package/lib/commands/agent/test/resume.js.map +1 -1
- package/lib/commands/agent/test/run.js +4 -14
- package/lib/commands/agent/test/run.js.map +1 -1
- package/lib/components/agent-preview-react.js +37 -72
- package/lib/components/agent-preview-react.js.map +1 -1
- package/lib/flags.d.ts +2 -6
- package/lib/flags.js +20 -55
- package/lib/flags.js.map +1 -1
- package/lib/handleTestResults.js +4 -13
- package/lib/handleTestResults.js.map +1 -1
- package/lib/index.js +4 -13
- package/lib/index.js.map +1 -1
- package/lib/inquirer-theme.js +4 -13
- package/lib/inquirer-theme.js.map +1 -1
- package/lib/testStages.js +4 -13
- package/lib/testStages.js.map +1 -1
- package/lib/yes-no-cancel.js +4 -13
- package/lib/yes-no-cancel.js.map +1 -1
- package/messages/agent.preview.md +2 -6
- package/messages/agent.test.run.md +0 -4
- package/npm-shrinkwrap.json +17924 -0
- package/oclif.lock +9492 -0
- package/oclif.manifest.json +5 -291
- package/package.json +12 -11
- package/lib/commands/agent/generate/authoring-bundle.d.ts +0 -22
- package/lib/commands/agent/generate/authoring-bundle.js +0 -146
- package/lib/commands/agent/generate/authoring-bundle.js.map +0 -1
- package/lib/commands/agent/publish/authoring-bundle.d.ts +0 -19
- package/lib/commands/agent/publish/authoring-bundle.js +0 -131
- package/lib/commands/agent/publish/authoring-bundle.js.map +0 -1
- package/lib/commands/agent/validate/authoring-bundle.d.ts +0 -18
- package/lib/commands/agent/validate/authoring-bundle.js +0 -123
- package/lib/commands/agent/validate/authoring-bundle.js.map +0 -1
- package/messages/agent.generate.authoring-bundle.md +0 -51
- package/messages/agent.publish.authoring-bundle.md +0 -50
- package/messages/agent.validate.authoring-bundle.md +0 -46
- package/schemas/agent-generate-authoring__bundle.json +0 -22
- package/schemas/agent-publish-authoring__bundle.json +0 -25
- package/schemas/agent-validate-authoring__bundle.json +0 -22
package/LICENSE.txt
CHANGED
|
@@ -1,206 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Salesforce, Inc.
|
|
1
|
+
Copyright (c) 2025, Salesforce.com, Inc.
|
|
4
2
|
All rights reserved.
|
|
5
3
|
|
|
6
|
-
|
|
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.
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
193
5
|
|
|
194
|
-
|
|
6
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
195
7
|
|
|
196
|
-
|
|
197
|
-
you may not use this file except in compliance with the License.
|
|
198
|
-
You may obtain a copy of the License at
|
|
8
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
199
9
|
|
|
200
|
-
|
|
10
|
+
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
201
11
|
|
|
202
|
-
|
|
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.
|
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
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://raw.githubusercontent.com/salesforcecli/plugin-agent/main/LICENSE.txt)
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -63,17 +63,14 @@ 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)
|
|
67
66
|
- [`sf agent generate template`](#sf-agent-generate-template)
|
|
68
67
|
- [`sf agent generate test-spec`](#sf-agent-generate-test-spec)
|
|
69
68
|
- [`sf agent preview`](#sf-agent-preview)
|
|
70
|
-
- [`sf agent publish authoring-bundle`](#sf-agent-publish-authoring-bundle)
|
|
71
69
|
- [`sf agent test create`](#sf-agent-test-create)
|
|
72
70
|
- [`sf agent test list`](#sf-agent-test-list)
|
|
73
71
|
- [`sf agent test results`](#sf-agent-test-results)
|
|
74
72
|
- [`sf agent test resume`](#sf-agent-test-resume)
|
|
75
73
|
- [`sf agent test run`](#sf-agent-test-run)
|
|
76
|
-
- [`sf agent validate authoring-bundle`](#sf-agent-validate-authoring-bundle)
|
|
77
74
|
|
|
78
75
|
## `sf agent activate`
|
|
79
76
|
|
|
@@ -112,7 +109,7 @@ EXAMPLES
|
|
|
112
109
|
$ sf agent activate --api-name Resort_Manager --target-org my-org
|
|
113
110
|
```
|
|
114
111
|
|
|
115
|
-
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
112
|
+
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/activate.ts)_
|
|
116
113
|
|
|
117
114
|
## `sf agent create`
|
|
118
115
|
|
|
@@ -174,7 +171,7 @@ EXAMPLES
|
|
|
174
171
|
$ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
|
|
175
172
|
```
|
|
176
173
|
|
|
177
|
-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
174
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/create.ts)_
|
|
178
175
|
|
|
179
176
|
## `sf agent deactivate`
|
|
180
177
|
|
|
@@ -214,7 +211,7 @@ EXAMPLES
|
|
|
214
211
|
$ sf agent deactivate --api-name Resort_Manager --target-org my-org
|
|
215
212
|
```
|
|
216
213
|
|
|
217
|
-
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
214
|
+
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/deactivate.ts)_
|
|
218
215
|
|
|
219
216
|
## `sf agent generate agent-spec`
|
|
220
217
|
|
|
@@ -319,55 +316,7 @@ EXAMPLES
|
|
|
319
316
|
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
|
|
320
317
|
```
|
|
321
318
|
|
|
322
|
-
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
323
|
-
|
|
324
|
-
## `sf agent generate authoring-bundle`
|
|
325
|
-
|
|
326
|
-
Generate a local authoring bundle from an existing agent spec YAML file.
|
|
327
|
-
|
|
328
|
-
```
|
|
329
|
-
USAGE
|
|
330
|
-
$ sf agent generate authoring-bundle -o <value> [--json] [--flags-dir <value>] [--api-name <value>] [--api-version <value>] [-f
|
|
331
|
-
<value>] [-d <value>] [-n <value>]
|
|
332
|
-
|
|
333
|
-
FLAGS
|
|
334
|
-
-d, --output-dir=<value> Directory where the authoring bundle files are generated.
|
|
335
|
-
-f, --spec=<value> Path to the agent spec YAML file.
|
|
336
|
-
-n, --name=<value> Name (label) of the authoring bundle.
|
|
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-name=<value> API name of the new authoring bundle; if not specified, the API name is derived from the
|
|
340
|
-
authoring bundle name (label); the API name can't exist in the org.
|
|
341
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
342
|
-
|
|
343
|
-
GLOBAL FLAGS
|
|
344
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
345
|
-
--json Format output as json.
|
|
346
|
-
|
|
347
|
-
DESCRIPTION
|
|
348
|
-
Generate a local authoring bundle from an existing agent spec YAML file.
|
|
349
|
-
|
|
350
|
-
Authoring bundles are metadata types that represent the next-gen Salesforce agents. Their exact metadata name is
|
|
351
|
-
AiAuthoringBundle and they consist of a standard "\*-meta.xml" metadata file and an agent file (with extension
|
|
352
|
-
".agent") that fully describes the next-gen agent. Use this command to generate an authoring bundle based on an agent
|
|
353
|
-
spec YAML file, which you create with the "agent create agent-spec" command.
|
|
354
|
-
|
|
355
|
-
By default, authoring bundles are generated in the force-app/main/default/aiAuthoringBundles/<api-name> directory. Use
|
|
356
|
-
the --output-dir to generate them elsewhere.
|
|
357
|
-
|
|
358
|
-
EXAMPLES
|
|
359
|
-
Generate an authoring bundle from the "specs/agentSpec.yaml" agent spec YAML file and give it the label "My
|
|
360
|
-
Authoring Bundle":
|
|
361
|
-
|
|
362
|
-
$ sf agent generate authoring-bundle --spec-file specs/agentSpec.yaml --name "My Authoring Bundle"
|
|
363
|
-
|
|
364
|
-
Same as previous example, but generate the files in the other-package-dir/main/default/aiAuthoringBundles directory:
|
|
365
|
-
|
|
366
|
-
$ sf agent generate authoring-bundle --spec-file specs/agentSpec.yaml --name "My Authoring Bundle" --output-dir \
|
|
367
|
-
other-package-dir/main/default/aiAuthoringBundles
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.9/src/commands/agent/generate/authoring-bundle.ts)_
|
|
319
|
+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/generate/agent-spec.ts)_
|
|
371
320
|
|
|
372
321
|
## `sf agent generate template`
|
|
373
322
|
|
|
@@ -415,7 +364,7 @@ EXAMPLES
|
|
|
415
364
|
force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
|
|
416
365
|
```
|
|
417
366
|
|
|
418
|
-
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
367
|
+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/generate/template.ts)_
|
|
419
368
|
|
|
420
369
|
## `sf agent generate test-spec`
|
|
421
370
|
|
|
@@ -476,7 +425,7 @@ EXAMPLES
|
|
|
476
425
|
force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
|
|
477
426
|
```
|
|
478
427
|
|
|
479
|
-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
428
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/generate/test-spec.ts)_
|
|
480
429
|
|
|
481
430
|
## `sf agent preview`
|
|
482
431
|
|
|
@@ -484,19 +433,19 @@ Interact with an active agent to preview how the agent responds to your statemen
|
|
|
484
433
|
|
|
485
434
|
```
|
|
486
435
|
USAGE
|
|
487
|
-
$ sf agent preview
|
|
488
|
-
|
|
436
|
+
$ sf agent preview (-c <value> -o <value>) [--flags-dir <value>] [--api-version <value>] [-n <value>] [-d
|
|
437
|
+
<value>] [-x]
|
|
489
438
|
|
|
490
439
|
FLAGS
|
|
491
|
-
-c, --client-app=<value>
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
-
|
|
495
|
-
|
|
496
|
-
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
440
|
+
-c, --client-app=<value> (required) Name of the linked client app to use for the agent connection. You must have
|
|
441
|
+
previously created this link with "org login web --client-app". Run "org display" to see
|
|
442
|
+
the available linked client apps.
|
|
443
|
+
-d, --output-dir=<value> Directory where conversation transcripts are saved.
|
|
444
|
+
-n, --api-name=<value> API name of the agent you want to interact with.
|
|
445
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
446
|
+
configuration variable is already set.
|
|
447
|
+
-x, --apex-debug Enable Apex debug logging during the agent preview conversation.
|
|
448
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
500
449
|
|
|
501
450
|
GLOBAL FLAGS
|
|
502
451
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -523,9 +472,8 @@ DESCRIPTION
|
|
|
523
472
|
currently deactivated, use the "agent activate" CLI command to activate it.
|
|
524
473
|
|
|
525
474
|
IMPORTANT: Before you use this command, you must complete a number of configuration steps in your org and your DX
|
|
526
|
-
project.
|
|
527
|
-
|
|
528
|
-
completed the steps. See "Preview an Agent" in the "Agentforce Developer Guide" for complete documentation:
|
|
475
|
+
project. The examples in this help assume you've completed the steps. See "Preview an Agent" in the "Agentforce
|
|
476
|
+
Developer Guide" for complete documentation:
|
|
529
477
|
https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-preview.html.
|
|
530
478
|
|
|
531
479
|
EXAMPLES
|
|
@@ -541,50 +489,7 @@ EXAMPLES
|
|
|
541
489
|
transcripts/my-preview
|
|
542
490
|
```
|
|
543
491
|
|
|
544
|
-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
545
|
-
|
|
546
|
-
## `sf agent publish authoring-bundle`
|
|
547
|
-
|
|
548
|
-
Publish an authoring bundle to your org, which results in a new next-gen agent.
|
|
549
|
-
|
|
550
|
-
```
|
|
551
|
-
USAGE
|
|
552
|
-
$ sf agent publish authoring-bundle -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>]
|
|
553
|
-
|
|
554
|
-
FLAGS
|
|
555
|
-
-n, --api-name=<value> API name of the authoring bundle you want to publish.
|
|
556
|
-
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
557
|
-
configuration variable is already set.
|
|
558
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
559
|
-
|
|
560
|
-
GLOBAL FLAGS
|
|
561
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
562
|
-
--json Format output as json.
|
|
563
|
-
|
|
564
|
-
DESCRIPTION
|
|
565
|
-
Publish an authoring bundle to your org, which results in a new next-gen agent.
|
|
566
|
-
|
|
567
|
-
When you publish an authoring bundle to your org, a number of things happen. First, this command validates that the
|
|
568
|
-
agent file (with extension ".agent") successfully compiles. Then the authoring bundle metadata component is deployed
|
|
569
|
-
to the org, and all associated metadata components, such as the Bot, BotVersion, and GenAiXXX components, are either
|
|
570
|
-
created or updated. The org then creates a new next-gen agent based on the deployed authoring bundle and associated
|
|
571
|
-
metadata. Finally, all the metadata associated with the new agent is retrieved back to your local DX project.
|
|
572
|
-
|
|
573
|
-
Authoring bundles are metadata types that represent the next-gen Salesforce agents. Their exact metadata name is
|
|
574
|
-
AiAuthoringBundle and they consist of a standard "\*-meta.xml" metadata file and an agent file (with extension
|
|
575
|
-
".agent") that fully describes the next-gen agent.
|
|
576
|
-
|
|
577
|
-
This command requires the API name of the authoring bundle; if you don't provide it with the --api-name flag, the
|
|
578
|
-
command prompts you for it.
|
|
579
|
-
|
|
580
|
-
EXAMPLES
|
|
581
|
-
Publish an authoring bundle with API name MyAuthoringBundle to the org with alias "my-org", resulting in a new agent
|
|
582
|
-
named "My Fab Agent"::
|
|
583
|
-
|
|
584
|
-
$ sf agent publish authoring-bundle --api-name MyAuthoringbundle --agent-name "My Fab Agent" --target-org my-org
|
|
585
|
-
```
|
|
586
|
-
|
|
587
|
-
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.9/src/commands/agent/publish/authoring-bundle.ts)_
|
|
492
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/preview.ts)_
|
|
588
493
|
|
|
589
494
|
## `sf agent test create`
|
|
590
495
|
|
|
@@ -639,7 +544,7 @@ EXAMPLES
|
|
|
639
544
|
$ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
|
|
640
545
|
```
|
|
641
546
|
|
|
642
|
-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
547
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/test/create.ts)_
|
|
643
548
|
|
|
644
549
|
## `sf agent test list`
|
|
645
550
|
|
|
@@ -674,7 +579,7 @@ EXAMPLES
|
|
|
674
579
|
$ sf agent test list --target-org my-org
|
|
675
580
|
```
|
|
676
581
|
|
|
677
|
-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
582
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/test/list.ts)_
|
|
678
583
|
|
|
679
584
|
## `sf agent test results`
|
|
680
585
|
|
|
@@ -740,7 +645,7 @@ FLAG DESCRIPTIONS
|
|
|
740
645
|
expression when using custom evaluations.
|
|
741
646
|
```
|
|
742
647
|
|
|
743
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
648
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/test/results.ts)_
|
|
744
649
|
|
|
745
650
|
## `sf agent test resume`
|
|
746
651
|
|
|
@@ -813,7 +718,7 @@ FLAG DESCRIPTIONS
|
|
|
813
718
|
expression when using custom evaluations.
|
|
814
719
|
```
|
|
815
720
|
|
|
816
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
721
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/test/resume.ts)_
|
|
817
722
|
|
|
818
723
|
## `sf agent test run`
|
|
819
724
|
|
|
@@ -887,46 +792,6 @@ FLAG DESCRIPTIONS
|
|
|
887
792
|
expression when using custom evaluations.
|
|
888
793
|
```
|
|
889
794
|
|
|
890
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14
|
|
891
|
-
|
|
892
|
-
## `sf agent validate authoring-bundle`
|
|
893
|
-
|
|
894
|
-
Validate a local authoring bundle to ensure it compiles successfully and can be used to create a next-gen agent.
|
|
895
|
-
|
|
896
|
-
```
|
|
897
|
-
USAGE
|
|
898
|
-
$ sf agent validate authoring-bundle -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>]
|
|
899
|
-
|
|
900
|
-
FLAGS
|
|
901
|
-
-n, --api-name=<value> API name of the authoring bundle you want to validate.
|
|
902
|
-
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
903
|
-
configuration variable is already set.
|
|
904
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
905
|
-
|
|
906
|
-
GLOBAL FLAGS
|
|
907
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
908
|
-
--json Format output as json.
|
|
909
|
-
|
|
910
|
-
DESCRIPTION
|
|
911
|
-
Validate a local authoring bundle to ensure it compiles successfully and can be used to create a next-gen agent.
|
|
912
|
-
|
|
913
|
-
Authoring bundles are metadata types that represent the next-gen Salesforce agents. Their exact metadata name is
|
|
914
|
-
AiAuthoringBundle and they consist of a standard "\*-meta.xml" metadata file and an agent file (with extension
|
|
915
|
-
".agent") that fully describes the next-gen agent. Generate a local authoring bundle with the "agent generate
|
|
916
|
-
authoring-bundle" command.
|
|
917
|
-
|
|
918
|
-
This command validates that the agent file (with extension ".agent") that's part of the authoring bundle compiles
|
|
919
|
-
without errors and can later be used to successfully create a next-gen agent.
|
|
920
|
-
|
|
921
|
-
This command requires the API name of the authoring bundle; if you don't provide it with the --api-name flag, the
|
|
922
|
-
command prompts you for it.
|
|
923
|
-
|
|
924
|
-
EXAMPLES
|
|
925
|
-
Validate a local authoring bundle with API name MyAuthoringBundle:
|
|
926
|
-
|
|
927
|
-
$ sf agent validate authoring-bundle --api-name MyAuthoringBundle
|
|
928
|
-
```
|
|
929
|
-
|
|
930
|
-
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-demo.9/src/commands/agent/validate/authoring-bundle.ts)_
|
|
795
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14/src/commands/agent/test/run.ts)_
|
|
931
796
|
|
|
932
797
|
<!-- commandsstop -->
|
package/lib/agentActivation.js
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
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.
|
|
2
|
+
* Copyright (c) 2024, salesforce.com, inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* Licensed under the BSD 3-Clause license.
|
|
5
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
15
6
|
*/
|
|
16
7
|
import { Messages, SfError } from '@salesforce/core';
|
|
17
8
|
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":"AAAA;;;;;GAKG;AAEH,OAAO,EAAc,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AAC,WAAW,CAAC,yBAAyB,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QAChG,CAAC;QACD,aAAa,CAAC,aAAa,CAAC,CAAC;IAC/B,CAAC;SAAM,CAAC;QACN,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC;YAC/B,OAAO,EAAE,iBAAiB;YAC1B,OAAO,EAAE,eAAe,CAAC,WAAW,EAAE,MAAM,CAAC;SAC9C,CAAC,CAAC;QACH,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,KAAK,WAAW,CAAC,aAAa,CAAC,CAAC;IACjG,CAAC;IAED,OAAO,IAAI,KAAK,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAc,CAAC,EAAE,EAAE,CAAC,CAAC;AACtE,CAAC,CAAC"}
|
package/lib/agentTestCache.js
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
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.
|
|
2
|
+
* Copyright (c) 2024, salesforce.com, inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* Licensed under the BSD 3-Clause license.
|
|
5
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
15
6
|
*/
|
|
16
7
|
import { Global, SfError, TTLConfig } from '@salesforce/core';
|
|
17
8
|
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;;;;;GAKG;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,17 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
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.
|
|
2
|
+
* Copyright (c) 2024, salesforce.com, inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* Licensed under the BSD 3-Clause license.
|
|
5
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
15
6
|
*/
|
|
16
7
|
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
17
8
|
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;;;;;GAKG;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;I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