@salesforce/plugin-agent 1.5.1 → 1.5.2
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 +56 -34
- package/lib/commands/agent/create.js +0 -1
- package/lib/commands/agent/create.js.map +1 -1
- package/messages/agent.create.md +9 -9
- package/messages/agent.generate.spec.md +19 -11
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +17 -17
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -71,15 +71,15 @@ sf plugins
|
|
|
71
71
|
|
|
72
72
|
## `sf agent create`
|
|
73
73
|
|
|
74
|
-
Create an
|
|
74
|
+
Create an agent in your org from a local agent spec file.
|
|
75
75
|
|
|
76
76
|
```
|
|
77
77
|
USAGE
|
|
78
78
|
$ sf agent create -o <value> -f <value> -n <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
79
79
|
|
|
80
80
|
FLAGS
|
|
81
|
-
-f, --job-spec=<value> (required)
|
|
82
|
-
-n, --name=<value> (required)
|
|
81
|
+
-f, --job-spec=<value> (required) Path to an agent spec file.
|
|
82
|
+
-n, --name=<value> (required) API name of the new agent.
|
|
83
83
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
84
84
|
configuration variable is already set.
|
|
85
85
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
@@ -89,27 +89,31 @@ GLOBAL FLAGS
|
|
|
89
89
|
--json Format output as json.
|
|
90
90
|
|
|
91
91
|
DESCRIPTION
|
|
92
|
-
Create an
|
|
92
|
+
Create an agent in your org from a local agent spec file.
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
To generate an agent spec file, run the "agent generate spec" CLI command, which outputs a JSON file with the list of
|
|
95
|
+
jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --job-spec flag of
|
|
96
|
+
this command, along with the name of the new agent.
|
|
95
97
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
When this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new
|
|
99
|
+
agent already has a list of topics and actions that were automatically created from the list of jobs in the provided
|
|
100
|
+
agent spec file. This command also retrieves all the metadata files associated with the new agent to your local DX
|
|
101
|
+
project.
|
|
98
102
|
|
|
99
|
-
|
|
103
|
+
To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name
|
|
104
|
+
<api-name-of-your-agent>".
|
|
100
105
|
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
EXAMPLES
|
|
107
|
+
Create an agent called "CustomerSupportAgent" in an org with alias "my-org" using the specified agent spec file:
|
|
103
108
|
|
|
104
|
-
|
|
105
|
-
spec` command.
|
|
109
|
+
$ sf agent create --name CustomerSupportAgent --job-spec ./config/agentSpec.json --target-org my-org
|
|
106
110
|
```
|
|
107
111
|
|
|
108
|
-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.
|
|
112
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.2/src/commands/agent/create.ts)_
|
|
109
113
|
|
|
110
114
|
## `sf agent generate spec`
|
|
111
115
|
|
|
112
|
-
|
|
116
|
+
Generate an agent spec, which is the list of jobs that the agent performs.
|
|
113
117
|
|
|
114
118
|
```
|
|
115
119
|
USAGE
|
|
@@ -118,37 +122,55 @@ USAGE
|
|
|
118
122
|
[-f <value>]
|
|
119
123
|
|
|
120
124
|
FLAGS
|
|
121
|
-
-d, --output-dir=<value> [default: config]
|
|
122
|
-
|
|
123
|
-
-f, --file-name=<value> [default: agentSpec.json]
|
|
125
|
+
-d, --output-dir=<value> [default: config] Directory where the agent spec file is written; can be an
|
|
126
|
+
absolute or relative path.
|
|
127
|
+
-f, --file-name=<value> [default: agentSpec.json] Name of the generated agent spec file.
|
|
124
128
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
125
129
|
configuration variable is already set.
|
|
126
|
-
-t, --type=<option>
|
|
130
|
+
-t, --type=<option> Type of agent to create.
|
|
127
131
|
<options: customer|internal>
|
|
128
132
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
129
|
-
--company-description=<value>
|
|
130
|
-
|
|
131
|
-
--company-
|
|
132
|
-
--
|
|
133
|
-
--role=<value> The role of the agent.
|
|
133
|
+
--company-description=<value> Description of your company.
|
|
134
|
+
--company-name=<value> Name of your company.
|
|
135
|
+
--company-website=<value> Website URL of your company.
|
|
136
|
+
--role=<value> Role of the agent.
|
|
134
137
|
|
|
135
138
|
GLOBAL FLAGS
|
|
136
139
|
--flags-dir=<value> Import flag values from a directory.
|
|
137
140
|
--json Format output as json.
|
|
138
141
|
|
|
139
142
|
DESCRIPTION
|
|
140
|
-
|
|
143
|
+
Generate an agent spec, which is the list of jobs that the agent performs.
|
|
144
|
+
|
|
145
|
+
When using Salesforce CLI to create an agent in your org, the first step is to generate the local JSON-formatted agent
|
|
146
|
+
spec file with this command.
|
|
141
147
|
|
|
142
|
-
|
|
148
|
+
An agent spec is a list of jobs and descriptions that capture what the agent can do. Use flags such as --role and
|
|
149
|
+
--company-description to provide details about your company and the role that the agent plays in your company; you can
|
|
150
|
+
also enter the information interactively if you prefer. When you then execute this command, the large language model
|
|
151
|
+
(LLM) associated with your org uses the information to generate the list of jobs that the agent most likely performs.
|
|
152
|
+
We recommend that you provide good details for --role, --company-description, etc, so that the LLM can generate the
|
|
153
|
+
best and most relevant list of jobs and descriptions. Once generated, you can edit the spec file; for example, you can
|
|
154
|
+
remove jobs that don't apply to your agent.
|
|
155
|
+
|
|
156
|
+
When your agent spec is ready, you then create the agent in your org by specifying the agent spec file to the
|
|
157
|
+
--job-spec flag of the "agent create" CLI command.
|
|
143
158
|
|
|
144
159
|
EXAMPLES
|
|
145
|
-
Create an
|
|
160
|
+
Create an agent spec for your default org in the default location and use flags to specify the agent's role and your
|
|
161
|
+
company details:
|
|
162
|
+
|
|
163
|
+
$ sf agent generate spec --type customer --role "Assist users in navigating and managing bookings" \
|
|
164
|
+
--company-name "Coral Cloud" --company-description "Resort that manages guests and their reservations and \
|
|
165
|
+
experiences"
|
|
166
|
+
|
|
167
|
+
Create an agent spec by being prompted for role and company details interactively; write the generated file to the
|
|
168
|
+
"specs" directory and use the org with alias "my-org":
|
|
146
169
|
|
|
147
|
-
$ sf agent generate spec --
|
|
148
|
-
--company-description "A meaningful description"
|
|
170
|
+
$ sf agent generate spec --output-dir specs --target-org my-org
|
|
149
171
|
```
|
|
150
172
|
|
|
151
|
-
_See code: [src/commands/agent/generate/spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.
|
|
173
|
+
_See code: [src/commands/agent/generate/spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.2/src/commands/agent/generate/spec.ts)_
|
|
152
174
|
|
|
153
175
|
## `sf agent preview`
|
|
154
176
|
|
|
@@ -183,7 +205,7 @@ FLAG DESCRIPTIONS
|
|
|
183
205
|
the API name of the agent? (TBD based on agents library)
|
|
184
206
|
```
|
|
185
207
|
|
|
186
|
-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.
|
|
208
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.2/src/commands/agent/preview.ts)_
|
|
187
209
|
|
|
188
210
|
## `sf agent test cancel`
|
|
189
211
|
|
|
@@ -215,7 +237,7 @@ EXAMPLES
|
|
|
215
237
|
$ sf agent test cancel --job-id AiEvalId
|
|
216
238
|
```
|
|
217
239
|
|
|
218
|
-
_See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.
|
|
240
|
+
_See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.2/src/commands/agent/test/cancel.ts)_
|
|
219
241
|
|
|
220
242
|
## `sf agent test results`
|
|
221
243
|
|
|
@@ -254,7 +276,7 @@ FLAG DESCRIPTIONS
|
|
|
254
276
|
results will not be written.
|
|
255
277
|
```
|
|
256
278
|
|
|
257
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.
|
|
279
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.2/src/commands/agent/test/results.ts)_
|
|
258
280
|
|
|
259
281
|
## `sf agent test resume`
|
|
260
282
|
|
|
@@ -302,7 +324,7 @@ FLAG DESCRIPTIONS
|
|
|
302
324
|
If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
|
|
303
325
|
```
|
|
304
326
|
|
|
305
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.
|
|
327
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.2/src/commands/agent/test/resume.ts)_
|
|
306
328
|
|
|
307
329
|
## `sf agent test run`
|
|
308
330
|
|
|
@@ -353,6 +375,6 @@ FLAG DESCRIPTIONS
|
|
|
353
375
|
If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
|
|
354
376
|
```
|
|
355
377
|
|
|
356
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.
|
|
378
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.5.2/src/commands/agent/test/run.ts)_
|
|
357
379
|
|
|
358
380
|
<!-- commandsstop -->
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/agent/create.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,O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CAAC,CAAC;QAChG,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAEhD,GAAG,CAAC,IAAI,EAAE,CAAC;QAEX,IAAI,CAAC,GAAG,CACN,OAAO,CAAC,SAAS;YACf,CAAC,CAAC,QAAQ,CACN,OAAO,EACP,wBAAwB,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,IAAI,gBAAgB,GAAG,CAClG;YACH,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,0BAA0B,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC,YAAY,IAAI,EAAE,EAAE,CAAC,CAC3F,CAAC;QACF,IAAI,CAAC,GAAG,CAAC,OAAO,QAAQ,CAAC,KAAK,EAAE,4BAA4B,KAAK,CAAC,IAAI,EAAE,CAAC,oCAAoC,CAAC,CAAC;QAE/G,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;IAC1C,CAAC"}
|
package/messages/agent.create.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
Create an
|
|
3
|
+
Create an agent in your org from a local agent spec file.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
To generate an agent spec file, run the "agent generate spec" CLI command, which outputs a JSON file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --job-spec flag of this command, along with the name of the new agent.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
When this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new agent already has a list of topics and actions that were automatically created from the list of jobs in the provided agent spec file. This command also retrieves all the metadata files associated with the new agent to your local DX project.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name <api-name-of-your-agent>".
|
|
12
12
|
|
|
13
|
-
# flags.job-spec.
|
|
13
|
+
# flags.job-spec.summary
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Path to an agent spec file.
|
|
16
16
|
|
|
17
17
|
# flags.name.summary
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
API name of the new agent.
|
|
20
20
|
|
|
21
21
|
# examples
|
|
22
22
|
|
|
23
|
-
- Create an
|
|
23
|
+
- Create an agent called "CustomerSupportAgent" in an org with alias "my-org" using the specified agent spec file:
|
|
24
24
|
|
|
25
|
-
<%= config.bin %> <%= command.id %> --spec ./
|
|
25
|
+
<%= config.bin %> <%= command.id %> --name CustomerSupportAgent --job-spec ./config/agentSpec.json --target-org my-org
|
|
@@ -1,41 +1,49 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Generate an agent spec, which is the list of jobs that the agent performs.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
When using Salesforce CLI to create an agent in your org, the first step is to generate the local JSON-formatted agent spec file with this command.
|
|
8
|
+
|
|
9
|
+
An agent spec is a list of jobs and descriptions that capture what the agent can do. Use flags such as --role and --company-description to provide details about your company and the role that the agent plays in your company; you can also enter the information interactively if you prefer. When you then execute this command, the large language model (LLM) associated with your org uses the information to generate the list of jobs that the agent most likely performs. We recommend that you provide good details for --role, --company-description, etc, so that the LLM can generate the best and most relevant list of jobs and descriptions. Once generated, you can edit the spec file; for example, you can remove jobs that don't apply to your agent.
|
|
10
|
+
|
|
11
|
+
When your agent spec is ready, you then create the agent in your org by specifying the agent spec file to the --job-spec flag of the "agent create" CLI command.
|
|
8
12
|
|
|
9
13
|
# flags.type.summary
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
Type of agent to create.
|
|
12
16
|
|
|
13
17
|
# flags.role.summary
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
Role of the agent.
|
|
16
20
|
|
|
17
21
|
# flags.company-name.summary
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
Name of your company.
|
|
20
24
|
|
|
21
25
|
# flags.company-description.summary
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
Description of your company.
|
|
24
28
|
|
|
25
29
|
# flags.company-website.summary
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
Website URL of your company.
|
|
28
32
|
|
|
29
33
|
# flags.output-dir.summary
|
|
30
34
|
|
|
31
|
-
|
|
35
|
+
Directory where the agent spec file is written; can be an absolute or relative path.
|
|
32
36
|
|
|
33
37
|
# flags.file-name.summary
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
Name of the generated agent spec file.
|
|
36
40
|
|
|
37
41
|
# examples
|
|
38
42
|
|
|
39
|
-
- Create an
|
|
43
|
+
- Create an agent spec for your default org in the default location and use flags to specify the agent's role and your company details:
|
|
44
|
+
|
|
45
|
+
<%= config.bin %> <%= command.id %> --type customer --role "Assist users in navigating and managing bookings" --company-name "Coral Cloud" --company-description "Resort that manages guests and their reservations and experiences"
|
|
46
|
+
|
|
47
|
+
- Create an agent spec by being prompted for role and company details interactively; write the generated file to the "specs" directory and use the org with alias "my-org":
|
|
40
48
|
|
|
41
|
-
<%= config.bin %> <%= command.id %> --
|
|
49
|
+
<%= config.bin %> <%= command.id %> --output-dir specs --target-org my-org
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/plugin-agent",
|
|
9
|
-
"version": "1.5.
|
|
9
|
+
"version": "1.5.2",
|
|
10
10
|
"license": "BSD-3-Clause",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@inquirer/figures": "^1.0.7",
|
package/oclif.manifest.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"agent:create": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "To generate an agent spec file, run the \"agent generate spec\" CLI command, which outputs a JSON file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --job-spec flag of this command, along with the name of the new agent.\n\nWhen this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new agent already has a list of topics and actions that were automatically created from the list of jobs in the provided agent spec file. This command also retrieves all the metadata files associated with the new agent to your local DX project.\n\nTo open the new agent in your org's Agent Builder UI, run this command: \"sf org open agent --name <api-name-of-your-agent>\".",
|
|
7
7
|
"examples": [
|
|
8
|
-
"Create an
|
|
8
|
+
"Create an agent called \"CustomerSupportAgent\" in an org with alias \"my-org\" using the specified agent spec file:\n<%= config.bin %> <%= command.id %> --name CustomerSupportAgent --job-spec ./config/agentSpec.json --target-org my-org"
|
|
9
9
|
],
|
|
10
10
|
"flags": {
|
|
11
11
|
"json": {
|
|
@@ -42,10 +42,9 @@
|
|
|
42
42
|
},
|
|
43
43
|
"job-spec": {
|
|
44
44
|
"char": "f",
|
|
45
|
-
"description": "The agent spec file defines job titles and descriptions for the agent and can be created using the `sf agent create spec` command.",
|
|
46
45
|
"name": "job-spec",
|
|
47
46
|
"required": true,
|
|
48
|
-
"summary": "
|
|
47
|
+
"summary": "Path to an agent spec file.",
|
|
49
48
|
"hasDynamicHelp": false,
|
|
50
49
|
"multiple": false,
|
|
51
50
|
"type": "option"
|
|
@@ -54,7 +53,7 @@
|
|
|
54
53
|
"char": "n",
|
|
55
54
|
"name": "name",
|
|
56
55
|
"required": true,
|
|
57
|
-
"summary": "
|
|
56
|
+
"summary": "API name of the new agent.",
|
|
58
57
|
"hasDynamicHelp": false,
|
|
59
58
|
"multiple": false,
|
|
60
59
|
"type": "option"
|
|
@@ -68,7 +67,7 @@
|
|
|
68
67
|
"pluginType": "core",
|
|
69
68
|
"state": "beta",
|
|
70
69
|
"strict": true,
|
|
71
|
-
"summary": "Create an
|
|
70
|
+
"summary": "Create an agent in your org from a local agent spec file.",
|
|
72
71
|
"enableJsonFlag": true,
|
|
73
72
|
"requiresProject": true,
|
|
74
73
|
"isESM": true,
|
|
@@ -155,9 +154,10 @@
|
|
|
155
154
|
"agent:generate:spec": {
|
|
156
155
|
"aliases": [],
|
|
157
156
|
"args": {},
|
|
158
|
-
"description": "
|
|
157
|
+
"description": "When using Salesforce CLI to create an agent in your org, the first step is to generate the local JSON-formatted agent spec file with this command.\n\nAn agent spec is a list of jobs and descriptions that capture what the agent can do. Use flags such as --role and --company-description to provide details about your company and the role that the agent plays in your company; you can also enter the information interactively if you prefer. When you then execute this command, the large language model (LLM) associated with your org uses the information to generate the list of jobs that the agent most likely performs. We recommend that you provide good details for --role, --company-description, etc, so that the LLM can generate the best and most relevant list of jobs and descriptions. Once generated, you can edit the spec file; for example, you can remove jobs that don't apply to your agent.\n\nWhen your agent spec is ready, you then create the agent in your org by specifying the agent spec file to the --job-spec flag of the \"agent create\" CLI command.",
|
|
159
158
|
"examples": [
|
|
160
|
-
"Create an
|
|
159
|
+
"Create an agent spec for your default org in the default location and use flags to specify the agent's role and your company details:\n<%= config.bin %> <%= command.id %> --type customer --role \"Assist users in navigating and managing bookings\" --company-name \"Coral Cloud\" --company-description \"Resort that manages guests and their reservations and experiences\"",
|
|
160
|
+
"Create an agent spec by being prompted for role and company details interactively; write the generated file to the \"specs\" directory and use the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --output-dir specs --target-org my-org"
|
|
161
161
|
],
|
|
162
162
|
"flags": {
|
|
163
163
|
"json": {
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"type": {
|
|
196
196
|
"char": "t",
|
|
197
197
|
"name": "type",
|
|
198
|
-
"summary": "
|
|
198
|
+
"summary": "Type of agent to create.",
|
|
199
199
|
"hasDynamicHelp": false,
|
|
200
200
|
"multiple": false,
|
|
201
201
|
"options": [
|
|
@@ -206,28 +206,28 @@
|
|
|
206
206
|
},
|
|
207
207
|
"role": {
|
|
208
208
|
"name": "role",
|
|
209
|
-
"summary": "
|
|
209
|
+
"summary": "Role of the agent.",
|
|
210
210
|
"hasDynamicHelp": false,
|
|
211
211
|
"multiple": false,
|
|
212
212
|
"type": "option"
|
|
213
213
|
},
|
|
214
214
|
"company-name": {
|
|
215
215
|
"name": "company-name",
|
|
216
|
-
"summary": "
|
|
216
|
+
"summary": "Name of your company.",
|
|
217
217
|
"hasDynamicHelp": false,
|
|
218
218
|
"multiple": false,
|
|
219
219
|
"type": "option"
|
|
220
220
|
},
|
|
221
221
|
"company-description": {
|
|
222
222
|
"name": "company-description",
|
|
223
|
-
"summary": "
|
|
223
|
+
"summary": "Description of your company.",
|
|
224
224
|
"hasDynamicHelp": false,
|
|
225
225
|
"multiple": false,
|
|
226
226
|
"type": "option"
|
|
227
227
|
},
|
|
228
228
|
"company-website": {
|
|
229
229
|
"name": "company-website",
|
|
230
|
-
"summary": "
|
|
230
|
+
"summary": "Website URL of your company.",
|
|
231
231
|
"hasDynamicHelp": false,
|
|
232
232
|
"multiple": false,
|
|
233
233
|
"type": "option"
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"output-dir": {
|
|
236
236
|
"char": "d",
|
|
237
237
|
"name": "output-dir",
|
|
238
|
-
"summary": "
|
|
238
|
+
"summary": "Directory where the agent spec file is written; can be an absolute or relative path.",
|
|
239
239
|
"default": "config",
|
|
240
240
|
"hasDynamicHelp": false,
|
|
241
241
|
"multiple": false,
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
"file-name": {
|
|
245
245
|
"char": "f",
|
|
246
246
|
"name": "file-name",
|
|
247
|
-
"summary": "
|
|
247
|
+
"summary": "Name of the generated agent spec file.",
|
|
248
248
|
"default": "agentSpec.json",
|
|
249
249
|
"hasDynamicHelp": false,
|
|
250
250
|
"multiple": false,
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
"pluginType": "core",
|
|
260
260
|
"state": "beta",
|
|
261
261
|
"strict": true,
|
|
262
|
-
"summary": "
|
|
262
|
+
"summary": "Generate an agent spec, which is the list of jobs that the agent performs.",
|
|
263
263
|
"enableJsonFlag": true,
|
|
264
264
|
"requiresProject": true,
|
|
265
265
|
"isESM": true,
|
|
@@ -691,5 +691,5 @@
|
|
|
691
691
|
]
|
|
692
692
|
}
|
|
693
693
|
},
|
|
694
|
-
"version": "1.5.
|
|
694
|
+
"version": "1.5.2"
|
|
695
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.5.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
"exports": "./lib/index.js",
|
|
222
222
|
"type": "module",
|
|
223
223
|
"sfdx": {
|
|
224
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.5.
|
|
225
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.5.
|
|
224
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.5.2.crt",
|
|
225
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.5.2.sig"
|
|
226
226
|
}
|
|
227
227
|
}
|