@salesforce/plugin-agent 1.5.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -33
- package/lib/commands/agent/create.js +0 -1
- package/lib/commands/agent/create.js.map +1 -1
- package/lib/commands/agent/generate/definition.d.ts +9 -0
- package/lib/commands/agent/generate/definition.js +76 -0
- package/lib/commands/agent/generate/definition.js.map +1 -0
- package/lib/commands/agent/generate/spec.js +3 -6
- package/lib/commands/agent/generate/spec.js.map +1 -1
- package/lib/commands/agent/generate/testset.d.ts +17 -0
- package/lib/commands/agent/generate/testset.js +101 -0
- package/lib/commands/agent/generate/testset.js.map +1 -0
- package/lib/inquirer-theme.d.ts +5 -0
- package/lib/inquirer-theme.js +11 -0
- package/lib/inquirer-theme.js.map +1 -0
- package/messages/agent.create.md +9 -9
- package/messages/agent.generate.definition.md +13 -0
- package/messages/agent.generate.spec.md +19 -11
- package/messages/agent.generate.testset.md +11 -0
- package/npm-shrinkwrap.json +157 -7
- package/oclif.lock +36 -28
- package/oclif.manifest.json +107 -17
- package/package.json +7 -6
|
@@ -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
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Interactively generate an AiEvaluationTestSet.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Answer the prompts to generate an AiEvaluationTestSet that will be written to a file. You can then run "sf agent generate definition" to generate the AiEvaluationDefinition that can be used to evaluate the test set.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- <%= config.bin %> <%= command.id %>
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/plugin-agent",
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.6.0",
|
|
10
10
|
"license": "BSD-3-Clause",
|
|
11
11
|
"dependencies": {
|
|
12
|
+
"@inquirer/confirm": "^5.1.0",
|
|
12
13
|
"@inquirer/figures": "^1.0.7",
|
|
13
14
|
"@inquirer/input": "^4.0.1",
|
|
14
15
|
"@inquirer/select": "^4.0.1",
|
|
@@ -2140,18 +2141,112 @@
|
|
|
2140
2141
|
"license": "BSD-3-Clause"
|
|
2141
2142
|
},
|
|
2142
2143
|
"node_modules/@inquirer/confirm": {
|
|
2143
|
-
"version": "
|
|
2144
|
-
"resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-
|
|
2145
|
-
"integrity": "sha512-
|
|
2144
|
+
"version": "5.1.0",
|
|
2145
|
+
"resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.0.tgz",
|
|
2146
|
+
"integrity": "sha512-osaBbIMEqVFjTX5exoqPXs6PilWQdjaLhGtMDXMXg/yxkHXNq43GlxGyTA35lK2HpzUgDN+Cjh/2AmqCN0QJpw==",
|
|
2146
2147
|
"license": "MIT",
|
|
2147
2148
|
"dependencies": {
|
|
2148
|
-
"@inquirer/core": "^
|
|
2149
|
-
"@inquirer/type": "^
|
|
2149
|
+
"@inquirer/core": "^10.1.1",
|
|
2150
|
+
"@inquirer/type": "^3.0.1"
|
|
2151
|
+
},
|
|
2152
|
+
"engines": {
|
|
2153
|
+
"node": ">=18"
|
|
2154
|
+
},
|
|
2155
|
+
"peerDependencies": {
|
|
2156
|
+
"@types/node": ">=18"
|
|
2157
|
+
}
|
|
2158
|
+
},
|
|
2159
|
+
"node_modules/@inquirer/confirm/node_modules/@inquirer/core": {
|
|
2160
|
+
"version": "10.1.1",
|
|
2161
|
+
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.1.tgz",
|
|
2162
|
+
"integrity": "sha512-rmZVXy9iZvO3ZStEe/ayuuwIJ23LSF13aPMlLMTQARX6lGUBDHGV8UB5i9MRrfy0+mZwt5/9bdy8llszSD3NQA==",
|
|
2163
|
+
"license": "MIT",
|
|
2164
|
+
"dependencies": {
|
|
2165
|
+
"@inquirer/figures": "^1.0.8",
|
|
2166
|
+
"@inquirer/type": "^3.0.1",
|
|
2167
|
+
"ansi-escapes": "^4.3.2",
|
|
2168
|
+
"cli-width": "^4.1.0",
|
|
2169
|
+
"mute-stream": "^2.0.0",
|
|
2170
|
+
"signal-exit": "^4.1.0",
|
|
2171
|
+
"strip-ansi": "^6.0.1",
|
|
2172
|
+
"wrap-ansi": "^6.2.0",
|
|
2173
|
+
"yoctocolors-cjs": "^2.1.2"
|
|
2150
2174
|
},
|
|
2151
2175
|
"engines": {
|
|
2152
2176
|
"node": ">=18"
|
|
2153
2177
|
}
|
|
2154
2178
|
},
|
|
2179
|
+
"node_modules/@inquirer/confirm/node_modules/@inquirer/figures": {
|
|
2180
|
+
"version": "1.0.8",
|
|
2181
|
+
"resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.8.tgz",
|
|
2182
|
+
"integrity": "sha512-tKd+jsmhq21AP1LhexC0pPwsCxEhGgAkg28byjJAd+xhmIs8LUX8JbUc3vBf3PhLxWiB5EvyBE5X7JSPAqMAqg==",
|
|
2183
|
+
"license": "MIT",
|
|
2184
|
+
"engines": {
|
|
2185
|
+
"node": ">=18"
|
|
2186
|
+
}
|
|
2187
|
+
},
|
|
2188
|
+
"node_modules/@inquirer/confirm/node_modules/@inquirer/type": {
|
|
2189
|
+
"version": "3.0.1",
|
|
2190
|
+
"resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.1.tgz",
|
|
2191
|
+
"integrity": "sha512-+ksJMIy92sOAiAccGpcKZUc3bYO07cADnscIxHBknEm3uNts3movSmBofc1908BNy5edKscxYeAdaX1NXkHS6A==",
|
|
2192
|
+
"license": "MIT",
|
|
2193
|
+
"engines": {
|
|
2194
|
+
"node": ">=18"
|
|
2195
|
+
},
|
|
2196
|
+
"peerDependencies": {
|
|
2197
|
+
"@types/node": ">=18"
|
|
2198
|
+
}
|
|
2199
|
+
},
|
|
2200
|
+
"node_modules/@inquirer/confirm/node_modules/ansi-styles": {
|
|
2201
|
+
"version": "4.3.0",
|
|
2202
|
+
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
|
2203
|
+
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
|
2204
|
+
"license": "MIT",
|
|
2205
|
+
"dependencies": {
|
|
2206
|
+
"color-convert": "^2.0.1"
|
|
2207
|
+
},
|
|
2208
|
+
"engines": {
|
|
2209
|
+
"node": ">=8"
|
|
2210
|
+
},
|
|
2211
|
+
"funding": {
|
|
2212
|
+
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"node_modules/@inquirer/confirm/node_modules/mute-stream": {
|
|
2216
|
+
"version": "2.0.0",
|
|
2217
|
+
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",
|
|
2218
|
+
"integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==",
|
|
2219
|
+
"license": "ISC",
|
|
2220
|
+
"engines": {
|
|
2221
|
+
"node": "^18.17.0 || >=20.5.0"
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
"node_modules/@inquirer/confirm/node_modules/signal-exit": {
|
|
2225
|
+
"version": "4.1.0",
|
|
2226
|
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
|
|
2227
|
+
"integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
|
|
2228
|
+
"license": "ISC",
|
|
2229
|
+
"engines": {
|
|
2230
|
+
"node": ">=14"
|
|
2231
|
+
},
|
|
2232
|
+
"funding": {
|
|
2233
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
2234
|
+
}
|
|
2235
|
+
},
|
|
2236
|
+
"node_modules/@inquirer/confirm/node_modules/wrap-ansi": {
|
|
2237
|
+
"version": "6.2.0",
|
|
2238
|
+
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
|
|
2239
|
+
"integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
|
|
2240
|
+
"license": "MIT",
|
|
2241
|
+
"dependencies": {
|
|
2242
|
+
"ansi-styles": "^4.0.0",
|
|
2243
|
+
"string-width": "^4.1.0",
|
|
2244
|
+
"strip-ansi": "^6.0.0"
|
|
2245
|
+
},
|
|
2246
|
+
"engines": {
|
|
2247
|
+
"node": ">=8"
|
|
2248
|
+
}
|
|
2249
|
+
},
|
|
2155
2250
|
"node_modules/@inquirer/core": {
|
|
2156
2251
|
"version": "9.1.0",
|
|
2157
2252
|
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-9.1.0.tgz",
|
|
@@ -2944,6 +3039,20 @@
|
|
|
2944
3039
|
"node": ">=18.0.0"
|
|
2945
3040
|
}
|
|
2946
3041
|
},
|
|
3042
|
+
"node_modules/@oclif/plugin-not-found/node_modules/@inquirer/confirm": {
|
|
3043
|
+
"version": "3.2.0",
|
|
3044
|
+
"resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-3.2.0.tgz",
|
|
3045
|
+
"integrity": "sha512-oOIwPs0Dvq5220Z8lGL/6LHRTEr9TgLHmiI99Rj1PJ1p1czTys+olrgBqZk4E2qC0YTzeHprxSQmoHioVdJ7Lw==",
|
|
3046
|
+
"dev": true,
|
|
3047
|
+
"license": "MIT",
|
|
3048
|
+
"dependencies": {
|
|
3049
|
+
"@inquirer/core": "^9.1.0",
|
|
3050
|
+
"@inquirer/type": "^1.5.3"
|
|
3051
|
+
},
|
|
3052
|
+
"engines": {
|
|
3053
|
+
"node": ">=18"
|
|
3054
|
+
}
|
|
3055
|
+
},
|
|
2947
3056
|
"node_modules/@oclif/plugin-warn-if-update-available": {
|
|
2948
3057
|
"version": "3.1.11",
|
|
2949
3058
|
"resolved": "https://registry.npmjs.org/@oclif/plugin-warn-if-update-available/-/plugin-warn-if-update-available-3.1.11.tgz",
|
|
@@ -3508,6 +3617,20 @@
|
|
|
3508
3617
|
"node": ">=18.0.0"
|
|
3509
3618
|
}
|
|
3510
3619
|
},
|
|
3620
|
+
"node_modules/@salesforce/plugin-command-reference/node_modules/@inquirer/confirm": {
|
|
3621
|
+
"version": "3.2.0",
|
|
3622
|
+
"resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-3.2.0.tgz",
|
|
3623
|
+
"integrity": "sha512-oOIwPs0Dvq5220Z8lGL/6LHRTEr9TgLHmiI99Rj1PJ1p1czTys+olrgBqZk4E2qC0YTzeHprxSQmoHioVdJ7Lw==",
|
|
3624
|
+
"dev": true,
|
|
3625
|
+
"license": "MIT",
|
|
3626
|
+
"dependencies": {
|
|
3627
|
+
"@inquirer/core": "^9.1.0",
|
|
3628
|
+
"@inquirer/type": "^1.5.3"
|
|
3629
|
+
},
|
|
3630
|
+
"engines": {
|
|
3631
|
+
"node": ">=18"
|
|
3632
|
+
}
|
|
3633
|
+
},
|
|
3511
3634
|
"node_modules/@salesforce/plugin-command-reference/node_modules/@salesforce/sf-plugins-core": {
|
|
3512
3635
|
"version": "11.3.12",
|
|
3513
3636
|
"resolved": "https://registry.npmjs.org/@salesforce/sf-plugins-core/-/sf-plugins-core-11.3.12.tgz",
|
|
@@ -3633,6 +3756,19 @@
|
|
|
3633
3756
|
"node": ">=18.0.0"
|
|
3634
3757
|
}
|
|
3635
3758
|
},
|
|
3759
|
+
"node_modules/@salesforce/sf-plugins-core/node_modules/@inquirer/confirm": {
|
|
3760
|
+
"version": "3.2.0",
|
|
3761
|
+
"resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-3.2.0.tgz",
|
|
3762
|
+
"integrity": "sha512-oOIwPs0Dvq5220Z8lGL/6LHRTEr9TgLHmiI99Rj1PJ1p1czTys+olrgBqZk4E2qC0YTzeHprxSQmoHioVdJ7Lw==",
|
|
3763
|
+
"license": "MIT",
|
|
3764
|
+
"dependencies": {
|
|
3765
|
+
"@inquirer/core": "^9.1.0",
|
|
3766
|
+
"@inquirer/type": "^1.5.3"
|
|
3767
|
+
},
|
|
3768
|
+
"engines": {
|
|
3769
|
+
"node": ">=18"
|
|
3770
|
+
}
|
|
3771
|
+
},
|
|
3636
3772
|
"node_modules/@salesforce/source-deploy-retrieve": {
|
|
3637
3773
|
"version": "12.10.2",
|
|
3638
3774
|
"resolved": "https://registry.npmjs.org/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.10.2.tgz",
|
|
@@ -16138,6 +16274,20 @@
|
|
|
16138
16274
|
"node": ">=18.0.0"
|
|
16139
16275
|
}
|
|
16140
16276
|
},
|
|
16277
|
+
"node_modules/oclif/node_modules/@inquirer/confirm": {
|
|
16278
|
+
"version": "3.2.0",
|
|
16279
|
+
"resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-3.2.0.tgz",
|
|
16280
|
+
"integrity": "sha512-oOIwPs0Dvq5220Z8lGL/6LHRTEr9TgLHmiI99Rj1PJ1p1czTys+olrgBqZk4E2qC0YTzeHprxSQmoHioVdJ7Lw==",
|
|
16281
|
+
"dev": true,
|
|
16282
|
+
"license": "MIT",
|
|
16283
|
+
"dependencies": {
|
|
16284
|
+
"@inquirer/core": "^9.1.0",
|
|
16285
|
+
"@inquirer/type": "^1.5.3"
|
|
16286
|
+
},
|
|
16287
|
+
"engines": {
|
|
16288
|
+
"node": ">=18"
|
|
16289
|
+
}
|
|
16290
|
+
},
|
|
16141
16291
|
"node_modules/oclif/node_modules/@inquirer/input": {
|
|
16142
16292
|
"version": "2.2.7",
|
|
16143
16293
|
"resolved": "https://registry.npmjs.org/@inquirer/input/-/input-2.2.7.tgz",
|
package/oclif.lock
CHANGED
|
@@ -1061,6 +1061,14 @@
|
|
|
1061
1061
|
"@inquirer/core" "^9.1.0"
|
|
1062
1062
|
"@inquirer/type" "^1.5.3"
|
|
1063
1063
|
|
|
1064
|
+
"@inquirer/confirm@^5.1.0":
|
|
1065
|
+
version "5.1.0"
|
|
1066
|
+
resolved "https://registry.yarnpkg.com/@inquirer/confirm/-/confirm-5.1.0.tgz#061cd0790c8debe092353589a501211b0d6c53ef"
|
|
1067
|
+
integrity sha512-osaBbIMEqVFjTX5exoqPXs6PilWQdjaLhGtMDXMXg/yxkHXNq43GlxGyTA35lK2HpzUgDN+Cjh/2AmqCN0QJpw==
|
|
1068
|
+
dependencies:
|
|
1069
|
+
"@inquirer/core" "^10.1.1"
|
|
1070
|
+
"@inquirer/type" "^3.0.1"
|
|
1071
|
+
|
|
1064
1072
|
"@inquirer/core@^10.0.1":
|
|
1065
1073
|
version "10.0.1"
|
|
1066
1074
|
resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-10.0.1.tgz#22068da87d8f6317452172dfd521e811ccbcb90e"
|
|
@@ -1076,6 +1084,21 @@
|
|
|
1076
1084
|
wrap-ansi "^6.2.0"
|
|
1077
1085
|
yoctocolors-cjs "^2.1.2"
|
|
1078
1086
|
|
|
1087
|
+
"@inquirer/core@^10.1.1":
|
|
1088
|
+
version "10.1.1"
|
|
1089
|
+
resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-10.1.1.tgz#801e82649fb64bcb2b5e4667397ff8c25bccebab"
|
|
1090
|
+
integrity sha512-rmZVXy9iZvO3ZStEe/ayuuwIJ23LSF13aPMlLMTQARX6lGUBDHGV8UB5i9MRrfy0+mZwt5/9bdy8llszSD3NQA==
|
|
1091
|
+
dependencies:
|
|
1092
|
+
"@inquirer/figures" "^1.0.8"
|
|
1093
|
+
"@inquirer/type" "^3.0.1"
|
|
1094
|
+
ansi-escapes "^4.3.2"
|
|
1095
|
+
cli-width "^4.1.0"
|
|
1096
|
+
mute-stream "^2.0.0"
|
|
1097
|
+
signal-exit "^4.1.0"
|
|
1098
|
+
strip-ansi "^6.0.1"
|
|
1099
|
+
wrap-ansi "^6.2.0"
|
|
1100
|
+
yoctocolors-cjs "^2.1.2"
|
|
1101
|
+
|
|
1079
1102
|
"@inquirer/core@^9.0.8", "@inquirer/core@^9.1.0":
|
|
1080
1103
|
version "9.1.0"
|
|
1081
1104
|
resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-9.1.0.tgz#158b82dc44564a1abd0ce14723d50c3efa0634a2"
|
|
@@ -1100,6 +1123,11 @@
|
|
|
1100
1123
|
resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.7.tgz#d050ccc0eabfacc0248c4ff647a9dfba1b01594b"
|
|
1101
1124
|
integrity sha512-m+Trk77mp54Zma6xLkLuY+mvanPxlE4A7yNKs2HBiyZ4UkVs28Mv5c/pgWrHeInx+USHeX/WEPzjrWrcJiQgjw==
|
|
1102
1125
|
|
|
1126
|
+
"@inquirer/figures@^1.0.8":
|
|
1127
|
+
version "1.0.8"
|
|
1128
|
+
resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.8.tgz#d9e414a1376a331a0e71b151fea27c48845788b0"
|
|
1129
|
+
integrity sha512-tKd+jsmhq21AP1LhexC0pPwsCxEhGgAkg28byjJAd+xhmIs8LUX8JbUc3vBf3PhLxWiB5EvyBE5X7JSPAqMAqg==
|
|
1130
|
+
|
|
1103
1131
|
"@inquirer/input@^2.2.4":
|
|
1104
1132
|
version "2.2.7"
|
|
1105
1133
|
resolved "https://registry.yarnpkg.com/@inquirer/input/-/input-2.2.7.tgz#87a922243a6c833ee5f1d4a6102c68b3cee9f19d"
|
|
@@ -1159,6 +1187,11 @@
|
|
|
1159
1187
|
resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.0.tgz#1762ebe667ec1d838012b20bf0cf90b841ba68bc"
|
|
1160
1188
|
integrity sha512-YYykfbw/lefC7yKj7nanzQXILM7r3suIvyFlCcMskc99axmsSewXWkAfXKwMbgxL76iAFVmRwmYdwNZNc8gjog==
|
|
1161
1189
|
|
|
1190
|
+
"@inquirer/type@^3.0.1":
|
|
1191
|
+
version "3.0.1"
|
|
1192
|
+
resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.1.tgz#619ce9f65c3e114d8e39c41822bed3440d20b478"
|
|
1193
|
+
integrity sha512-+ksJMIy92sOAiAccGpcKZUc3bYO07cADnscIxHBknEm3uNts3movSmBofc1908BNy5edKscxYeAdaX1NXkHS6A==
|
|
1194
|
+
|
|
1162
1195
|
"@isaacs/cliui@^8.0.2":
|
|
1163
1196
|
version "8.0.2"
|
|
1164
1197
|
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
|
|
@@ -7741,16 +7774,7 @@ stack-utils@^2.0.6:
|
|
|
7741
7774
|
dependencies:
|
|
7742
7775
|
escape-string-regexp "^2.0.0"
|
|
7743
7776
|
|
|
7744
|
-
"string-width-cjs@npm:string-width@^4.2.0":
|
|
7745
|
-
version "4.2.3"
|
|
7746
|
-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
|
7747
|
-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
|
7748
|
-
dependencies:
|
|
7749
|
-
emoji-regex "^8.0.0"
|
|
7750
|
-
is-fullwidth-code-point "^3.0.0"
|
|
7751
|
-
strip-ansi "^6.0.1"
|
|
7752
|
-
|
|
7753
|
-
string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
|
|
7777
|
+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
|
|
7754
7778
|
version "4.2.3"
|
|
7755
7779
|
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
|
7756
7780
|
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
|
@@ -7872,14 +7896,7 @@ string_decoder@~1.1.1:
|
|
|
7872
7896
|
dependencies:
|
|
7873
7897
|
safe-buffer "~5.1.0"
|
|
7874
7898
|
|
|
7875
|
-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
|
|
7876
|
-
version "6.0.1"
|
|
7877
|
-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
|
7878
|
-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
|
7879
|
-
dependencies:
|
|
7880
|
-
ansi-regex "^5.0.1"
|
|
7881
|
-
|
|
7882
|
-
strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
|
|
7899
|
+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
|
|
7883
7900
|
version "6.0.1"
|
|
7884
7901
|
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
|
7885
7902
|
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
|
@@ -8546,7 +8563,7 @@ workerpool@^6.5.1:
|
|
|
8546
8563
|
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544"
|
|
8547
8564
|
integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==
|
|
8548
8565
|
|
|
8549
|
-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
|
|
8566
|
+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
|
|
8550
8567
|
version "7.0.0"
|
|
8551
8568
|
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
|
8552
8569
|
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
|
@@ -8564,15 +8581,6 @@ wrap-ansi@^6.2.0:
|
|
|
8564
8581
|
string-width "^4.1.0"
|
|
8565
8582
|
strip-ansi "^6.0.0"
|
|
8566
8583
|
|
|
8567
|
-
wrap-ansi@^7.0.0:
|
|
8568
|
-
version "7.0.0"
|
|
8569
|
-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
|
8570
|
-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
|
8571
|
-
dependencies:
|
|
8572
|
-
ansi-styles "^4.0.0"
|
|
8573
|
-
string-width "^4.1.0"
|
|
8574
|
-
strip-ansi "^6.0.0"
|
|
8575
|
-
|
|
8576
8584
|
wrap-ansi@^8.1.0:
|
|
8577
8585
|
version "8.1.0"
|
|
8578
8586
|
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
|
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,
|
|
@@ -152,12 +151,58 @@
|
|
|
152
151
|
"preview:agent"
|
|
153
152
|
]
|
|
154
153
|
},
|
|
154
|
+
"agent:generate:definition": {
|
|
155
|
+
"aliases": [],
|
|
156
|
+
"args": {},
|
|
157
|
+
"description": "This command will prompt you for the necessary information to create a new AiEvaluationDefinition. The definition will be saved to the `aiEvaluationDefinitions` directory in the project.\n\nYou must have the `Bots` and `AiEvaluationTestSets` metadata types present in your project to use this command.",
|
|
158
|
+
"examples": [
|
|
159
|
+
"<%= config.bin %> <%= command.id %>"
|
|
160
|
+
],
|
|
161
|
+
"flags": {
|
|
162
|
+
"flags-dir": {
|
|
163
|
+
"helpGroup": "GLOBAL",
|
|
164
|
+
"name": "flags-dir",
|
|
165
|
+
"summary": "Import flag values from a directory.",
|
|
166
|
+
"hasDynamicHelp": false,
|
|
167
|
+
"multiple": false,
|
|
168
|
+
"type": "option"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"hasDynamicHelp": false,
|
|
172
|
+
"hiddenAliases": [],
|
|
173
|
+
"id": "agent:generate:definition",
|
|
174
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
175
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
176
|
+
"pluginType": "core",
|
|
177
|
+
"state": "beta",
|
|
178
|
+
"strict": true,
|
|
179
|
+
"summary": "Interactively generate a new AiEvaluationDefinition.",
|
|
180
|
+
"enableJsonFlag": false,
|
|
181
|
+
"isESM": true,
|
|
182
|
+
"relativePath": [
|
|
183
|
+
"lib",
|
|
184
|
+
"commands",
|
|
185
|
+
"agent",
|
|
186
|
+
"generate",
|
|
187
|
+
"definition.js"
|
|
188
|
+
],
|
|
189
|
+
"aliasPermutations": [],
|
|
190
|
+
"permutations": [
|
|
191
|
+
"agent:generate:definition",
|
|
192
|
+
"generate:agent:definition",
|
|
193
|
+
"generate:definition:agent",
|
|
194
|
+
"agent:definition:generate",
|
|
195
|
+
"definition:agent:generate",
|
|
196
|
+
"definition:generate:agent"
|
|
197
|
+
]
|
|
198
|
+
},
|
|
155
199
|
"agent:generate:spec": {
|
|
156
200
|
"aliases": [],
|
|
157
201
|
"args": {},
|
|
158
|
-
"description": "
|
|
202
|
+
"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
203
|
"examples": [
|
|
160
|
-
"Create an
|
|
204
|
+
"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\"",
|
|
205
|
+
"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
206
|
],
|
|
162
207
|
"flags": {
|
|
163
208
|
"json": {
|
|
@@ -195,7 +240,7 @@
|
|
|
195
240
|
"type": {
|
|
196
241
|
"char": "t",
|
|
197
242
|
"name": "type",
|
|
198
|
-
"summary": "
|
|
243
|
+
"summary": "Type of agent to create.",
|
|
199
244
|
"hasDynamicHelp": false,
|
|
200
245
|
"multiple": false,
|
|
201
246
|
"options": [
|
|
@@ -206,28 +251,28 @@
|
|
|
206
251
|
},
|
|
207
252
|
"role": {
|
|
208
253
|
"name": "role",
|
|
209
|
-
"summary": "
|
|
254
|
+
"summary": "Role of the agent.",
|
|
210
255
|
"hasDynamicHelp": false,
|
|
211
256
|
"multiple": false,
|
|
212
257
|
"type": "option"
|
|
213
258
|
},
|
|
214
259
|
"company-name": {
|
|
215
260
|
"name": "company-name",
|
|
216
|
-
"summary": "
|
|
261
|
+
"summary": "Name of your company.",
|
|
217
262
|
"hasDynamicHelp": false,
|
|
218
263
|
"multiple": false,
|
|
219
264
|
"type": "option"
|
|
220
265
|
},
|
|
221
266
|
"company-description": {
|
|
222
267
|
"name": "company-description",
|
|
223
|
-
"summary": "
|
|
268
|
+
"summary": "Description of your company.",
|
|
224
269
|
"hasDynamicHelp": false,
|
|
225
270
|
"multiple": false,
|
|
226
271
|
"type": "option"
|
|
227
272
|
},
|
|
228
273
|
"company-website": {
|
|
229
274
|
"name": "company-website",
|
|
230
|
-
"summary": "
|
|
275
|
+
"summary": "Website URL of your company.",
|
|
231
276
|
"hasDynamicHelp": false,
|
|
232
277
|
"multiple": false,
|
|
233
278
|
"type": "option"
|
|
@@ -235,7 +280,7 @@
|
|
|
235
280
|
"output-dir": {
|
|
236
281
|
"char": "d",
|
|
237
282
|
"name": "output-dir",
|
|
238
|
-
"summary": "
|
|
283
|
+
"summary": "Directory where the agent spec file is written; can be an absolute or relative path.",
|
|
239
284
|
"default": "config",
|
|
240
285
|
"hasDynamicHelp": false,
|
|
241
286
|
"multiple": false,
|
|
@@ -244,7 +289,7 @@
|
|
|
244
289
|
"file-name": {
|
|
245
290
|
"char": "f",
|
|
246
291
|
"name": "file-name",
|
|
247
|
-
"summary": "
|
|
292
|
+
"summary": "Name of the generated agent spec file.",
|
|
248
293
|
"default": "agentSpec.json",
|
|
249
294
|
"hasDynamicHelp": false,
|
|
250
295
|
"multiple": false,
|
|
@@ -259,7 +304,7 @@
|
|
|
259
304
|
"pluginType": "core",
|
|
260
305
|
"state": "beta",
|
|
261
306
|
"strict": true,
|
|
262
|
-
"summary": "
|
|
307
|
+
"summary": "Generate an agent spec, which is the list of jobs that the agent performs.",
|
|
263
308
|
"enableJsonFlag": true,
|
|
264
309
|
"requiresProject": true,
|
|
265
310
|
"isESM": true,
|
|
@@ -280,6 +325,51 @@
|
|
|
280
325
|
"spec:generate:agent"
|
|
281
326
|
]
|
|
282
327
|
},
|
|
328
|
+
"agent:generate:testset": {
|
|
329
|
+
"aliases": [],
|
|
330
|
+
"args": {},
|
|
331
|
+
"description": "Answer the prompts to generate an AiEvaluationTestSet that will be written to a file. You can then run \"sf agent generate definition\" to generate the AiEvaluationDefinition that can be used to evaluate the test set.",
|
|
332
|
+
"examples": [
|
|
333
|
+
"<%= config.bin %> <%= command.id %>"
|
|
334
|
+
],
|
|
335
|
+
"flags": {
|
|
336
|
+
"flags-dir": {
|
|
337
|
+
"helpGroup": "GLOBAL",
|
|
338
|
+
"name": "flags-dir",
|
|
339
|
+
"summary": "Import flag values from a directory.",
|
|
340
|
+
"hasDynamicHelp": false,
|
|
341
|
+
"multiple": false,
|
|
342
|
+
"type": "option"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"hasDynamicHelp": false,
|
|
346
|
+
"hiddenAliases": [],
|
|
347
|
+
"id": "agent:generate:testset",
|
|
348
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
349
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
350
|
+
"pluginType": "core",
|
|
351
|
+
"state": "beta",
|
|
352
|
+
"strict": true,
|
|
353
|
+
"summary": "Interactively generate an AiEvaluationTestSet.",
|
|
354
|
+
"enableJsonFlag": false,
|
|
355
|
+
"isESM": true,
|
|
356
|
+
"relativePath": [
|
|
357
|
+
"lib",
|
|
358
|
+
"commands",
|
|
359
|
+
"agent",
|
|
360
|
+
"generate",
|
|
361
|
+
"testset.js"
|
|
362
|
+
],
|
|
363
|
+
"aliasPermutations": [],
|
|
364
|
+
"permutations": [
|
|
365
|
+
"agent:generate:testset",
|
|
366
|
+
"generate:agent:testset",
|
|
367
|
+
"generate:testset:agent",
|
|
368
|
+
"agent:testset:generate",
|
|
369
|
+
"testset:agent:generate",
|
|
370
|
+
"testset:generate:agent"
|
|
371
|
+
]
|
|
372
|
+
},
|
|
283
373
|
"agent:test:cancel": {
|
|
284
374
|
"aliases": [],
|
|
285
375
|
"args": {},
|
|
@@ -691,5 +781,5 @@
|
|
|
691
781
|
]
|
|
692
782
|
}
|
|
693
783
|
},
|
|
694
|
-
"version": "1.
|
|
784
|
+
"version": "1.6.0"
|
|
695
785
|
}
|