@salesforce/plugin-agent 1.27.4 → 1.27.5
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 +28 -19
- package/lib/commands/agent/generate/authoring-bundle.d.ts +1 -0
- package/lib/commands/agent/generate/authoring-bundle.js +22 -4
- package/lib/commands/agent/generate/authoring-bundle.js.map +1 -1
- package/lib/flags.js +1 -1
- package/lib/flags.js.map +1 -1
- package/messages/agent.generate.authoring-bundle.md +14 -2
- package/oclif.manifest.json +11 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ EXAMPLES
|
|
|
112
112
|
$ sf agent activate --api-name Resort_Manager --target-org my-org
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
115
|
+
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/activate.ts)_
|
|
116
116
|
|
|
117
117
|
## `sf agent create`
|
|
118
118
|
|
|
@@ -179,7 +179,7 @@ EXAMPLES
|
|
|
179
179
|
$ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
|
|
180
180
|
```
|
|
181
181
|
|
|
182
|
-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
182
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/create.ts)_
|
|
183
183
|
|
|
184
184
|
## `sf agent deactivate`
|
|
185
185
|
|
|
@@ -219,7 +219,7 @@ EXAMPLES
|
|
|
219
219
|
$ sf agent deactivate --api-name Resort_Manager --target-org my-org
|
|
220
220
|
```
|
|
221
221
|
|
|
222
|
-
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
222
|
+
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/deactivate.ts)_
|
|
223
223
|
|
|
224
224
|
## `sf agent generate agent-spec`
|
|
225
225
|
|
|
@@ -326,7 +326,7 @@ EXAMPLES
|
|
|
326
326
|
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
|
|
327
327
|
```
|
|
328
328
|
|
|
329
|
-
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
329
|
+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/generate/agent-spec.ts)_
|
|
330
330
|
|
|
331
331
|
## `sf agent generate authoring-bundle`
|
|
332
332
|
|
|
@@ -335,18 +335,20 @@ Generate an authoring bundle from an existing agent spec YAML file.
|
|
|
335
335
|
```
|
|
336
336
|
USAGE
|
|
337
337
|
$ sf agent generate authoring-bundle -o <value> [--json] [--flags-dir <value>] [--api-name <value>] [--api-version <value>] [-f
|
|
338
|
-
<value>] [-d <value>] [-n <value>]
|
|
338
|
+
<value>] [--no-spec] [-d <value>] [-n <value>]
|
|
339
339
|
|
|
340
340
|
FLAGS
|
|
341
341
|
-d, --output-dir=<value> Directory where the authoring bundle files are generated.
|
|
342
|
-
-f, --spec=<value> Path to the agent spec YAML file
|
|
343
|
-
can choose from.
|
|
342
|
+
-f, --spec=<value> Path to the agent spec YAML file. If you don't specify the flag, the command provides a
|
|
343
|
+
list that you can choose from. Use the --no-spec flag to skip using an agent spec entirely.
|
|
344
344
|
-n, --name=<value> Name (label) of the authoring bundle; if not specified, you're prompted for the name.
|
|
345
345
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
346
346
|
configuration variable is already set.
|
|
347
347
|
--api-name=<value> API name of the new authoring bundle; if not specified, the API name is derived from the
|
|
348
348
|
authoring bundle name (label); the API name can't exist in the org.
|
|
349
349
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
350
|
+
--no-spec Skip prompting for an agent spec and use the default Agent Script boilerplate in the
|
|
351
|
+
generated authoring bundle.
|
|
350
352
|
|
|
351
353
|
GLOBAL FLAGS
|
|
352
354
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -360,7 +362,9 @@ DESCRIPTION
|
|
|
360
362
|
|
|
361
363
|
Use this command to generate a new authoring bundle based on an agent spec YAML file, which you create with the "agent
|
|
362
364
|
generate agent-spec" command. The agent spec YAML file is a high-level description of the agent; it describes its
|
|
363
|
-
essence rather than exactly what it can do.
|
|
365
|
+
essence rather than exactly what it can do. The resulting Agent Script file is customized to reflect what's in the
|
|
366
|
+
agent spec file. You can also create an authoring bundle without an agent spec file by specifying the "--no-spec"
|
|
367
|
+
flag; in this case, the resulting Agent Script file is just the default boilerplate.
|
|
364
368
|
|
|
365
369
|
The metadata type for authoring bundles is aiAuthoringBundle, which consist of a standard
|
|
366
370
|
"<bundle-api-name>.bundle-meta.xml" metadata file and the Agent Script file (with extension ".agent"). When you run
|
|
@@ -380,6 +384,11 @@ EXAMPLES
|
|
|
380
384
|
|
|
381
385
|
$ sf agent generate authoring-bundle
|
|
382
386
|
|
|
387
|
+
Generate an authoring bundle without using an agent spec file; give the bundle the label "My Authoring Bundle" and
|
|
388
|
+
use your default org:
|
|
389
|
+
|
|
390
|
+
$ sf agent generate authoring-bundle --no-spec --name "My Authoring Bundle"
|
|
391
|
+
|
|
383
392
|
Generate an authoring bundle from the "specs/agentSpec.yaml" agent spec YAML file and give it the label "My
|
|
384
393
|
Authoring Bundle"; use your default org:
|
|
385
394
|
|
|
@@ -392,7 +401,7 @@ EXAMPLES
|
|
|
392
401
|
other-package-dir/main/default --target-org my-dev-org
|
|
393
402
|
```
|
|
394
403
|
|
|
395
|
-
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
404
|
+
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/generate/authoring-bundle.ts)_
|
|
396
405
|
|
|
397
406
|
## `sf agent generate template`
|
|
398
407
|
|
|
@@ -440,7 +449,7 @@ EXAMPLES
|
|
|
440
449
|
force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
|
|
441
450
|
```
|
|
442
451
|
|
|
443
|
-
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
452
|
+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/generate/template.ts)_
|
|
444
453
|
|
|
445
454
|
## `sf agent generate test-spec`
|
|
446
455
|
|
|
@@ -501,7 +510,7 @@ EXAMPLES
|
|
|
501
510
|
force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
|
|
502
511
|
```
|
|
503
512
|
|
|
504
|
-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
513
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/generate/test-spec.ts)_
|
|
505
514
|
|
|
506
515
|
## `sf agent preview`
|
|
507
516
|
|
|
@@ -574,7 +583,7 @@ EXAMPLES
|
|
|
574
583
|
$ sf agent preview --use-live-actions --apex-debug --output-dir transcripts/my-preview
|
|
575
584
|
```
|
|
576
585
|
|
|
577
|
-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
586
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/preview.ts)_
|
|
578
587
|
|
|
579
588
|
## `sf agent publish authoring-bundle`
|
|
580
589
|
|
|
@@ -623,7 +632,7 @@ EXAMPLES
|
|
|
623
632
|
$ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-dev-org
|
|
624
633
|
```
|
|
625
634
|
|
|
626
|
-
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
635
|
+
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/publish/authoring-bundle.ts)_
|
|
627
636
|
|
|
628
637
|
## `sf agent test create`
|
|
629
638
|
|
|
@@ -678,7 +687,7 @@ EXAMPLES
|
|
|
678
687
|
$ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
|
|
679
688
|
```
|
|
680
689
|
|
|
681
|
-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
690
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/test/create.ts)_
|
|
682
691
|
|
|
683
692
|
## `sf agent test list`
|
|
684
693
|
|
|
@@ -713,7 +722,7 @@ EXAMPLES
|
|
|
713
722
|
$ sf agent test list --target-org my-org
|
|
714
723
|
```
|
|
715
724
|
|
|
716
|
-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
725
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/test/list.ts)_
|
|
717
726
|
|
|
718
727
|
## `sf agent test results`
|
|
719
728
|
|
|
@@ -779,7 +788,7 @@ FLAG DESCRIPTIONS
|
|
|
779
788
|
expression when using custom evaluations.
|
|
780
789
|
```
|
|
781
790
|
|
|
782
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
791
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/test/results.ts)_
|
|
783
792
|
|
|
784
793
|
## `sf agent test resume`
|
|
785
794
|
|
|
@@ -852,7 +861,7 @@ FLAG DESCRIPTIONS
|
|
|
852
861
|
expression when using custom evaluations.
|
|
853
862
|
```
|
|
854
863
|
|
|
855
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
864
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/test/resume.ts)_
|
|
856
865
|
|
|
857
866
|
## `sf agent test run`
|
|
858
867
|
|
|
@@ -926,7 +935,7 @@ FLAG DESCRIPTIONS
|
|
|
926
935
|
expression when using custom evaluations.
|
|
927
936
|
```
|
|
928
937
|
|
|
929
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
938
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/test/run.ts)_
|
|
930
939
|
|
|
931
940
|
## `sf agent validate authoring-bundle`
|
|
932
941
|
|
|
@@ -973,6 +982,6 @@ EXAMPLES
|
|
|
973
982
|
$ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
|
|
974
983
|
```
|
|
975
984
|
|
|
976
|
-
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.
|
|
985
|
+
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/validate/authoring-bundle.ts)_
|
|
977
986
|
|
|
978
987
|
<!-- commandsstop -->
|
|
@@ -14,6 +14,7 @@ export default class AgentGenerateAuthoringBundle extends SfCommand<AgentGenerat
|
|
|
14
14
|
'api-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
15
|
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
16
|
spec: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
'no-spec': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
18
|
'output-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
20
|
};
|
|
@@ -35,10 +35,12 @@ export default class AgentGenerateAuthoringBundle extends SfCommand {
|
|
|
35
35
|
summary: messages.getMessage('flags.api-name.summary'),
|
|
36
36
|
}),
|
|
37
37
|
'api-version': Flags.orgApiVersion(),
|
|
38
|
-
spec: Flags.
|
|
38
|
+
spec: Flags.string({
|
|
39
39
|
summary: messages.getMessage('flags.spec.summary'),
|
|
40
40
|
char: 'f',
|
|
41
|
-
|
|
41
|
+
}),
|
|
42
|
+
'no-spec': Flags.boolean({
|
|
43
|
+
summary: messages.getMessage('flags.no-spec.summary'),
|
|
42
44
|
}),
|
|
43
45
|
'output-dir': Flags.directory({
|
|
44
46
|
summary: messages.getMessage('flags.output-dir.summary'),
|
|
@@ -89,8 +91,24 @@ export default class AgentGenerateAuthoringBundle extends SfCommand {
|
|
|
89
91
|
async run() {
|
|
90
92
|
const { flags } = await this.parse(AgentGenerateAuthoringBundle);
|
|
91
93
|
const { 'output-dir': outputDir } = flags;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
if (flags.spec && flags['no-spec']) {
|
|
95
|
+
throw new SfError(messages.getMessage('error.specAndNoSpec'));
|
|
96
|
+
}
|
|
97
|
+
// Resolve spec: --no-spec => undefined (default spec), --spec <path> => path, missing => prompt
|
|
98
|
+
let spec;
|
|
99
|
+
if (flags['no-spec']) {
|
|
100
|
+
spec = undefined;
|
|
101
|
+
}
|
|
102
|
+
else if (flags.spec !== undefined) {
|
|
103
|
+
const specPath = resolve(flags.spec);
|
|
104
|
+
if (!existsSync(specPath)) {
|
|
105
|
+
throw new SfError(messages.getMessage('error.no-spec-file'));
|
|
106
|
+
}
|
|
107
|
+
spec = specPath;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
spec = await promptForSpecYaml(AgentGenerateAuthoringBundle.FLAGGABLE_PROMPTS['spec']);
|
|
111
|
+
}
|
|
94
112
|
// If we don't have a name yet, prompt for it
|
|
95
113
|
const name = flags['name'] ?? (await promptForFlag(AgentGenerateAuthoringBundle.FLAGGABLE_PROMPTS['name']));
|
|
96
114
|
// If we don't have an api name yet, prompt for it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-bundle.js","sourceRoot":"","sources":["../../../../src/commands/agent/generate/authoring-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAgB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAmB,aAAa,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,iCAAiC,CAAC,CAAC;AAQtG,MAAM,CAAC,OAAO,OAAO,4BAA6B,SAAQ,SAA6C;IAC9F,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAA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C,CAAC;YAChC,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC,EAAE,sBAAsB,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;QAChH,CAAC;IACH,CAAC"}
|
package/lib/flags.js
CHANGED
|
@@ -80,7 +80,7 @@ export function traverseForFiles(dirOrDirs, suffixes, excludeDirs) {
|
|
|
80
80
|
if (file.isDirectory() && !excludeDirs?.includes(file.name)) {
|
|
81
81
|
results.push(...traverseForFiles(fullPath, suffixes, excludeDirs));
|
|
82
82
|
}
|
|
83
|
-
else if (suffixes.some((suffix) => file.name.endsWith(suffix))) {
|
|
83
|
+
else if (suffixes.some((suffix) => file.name.toLowerCase().endsWith(suffix.toLowerCase()))) {
|
|
84
84
|
results.push(fullPath);
|
|
85
85
|
}
|
|
86
86
|
}
|
package/lib/flags.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAc,QAAQ,EAAE,OAAO,EAAa,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,SAAS,EAA4B,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC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|
Authoring bundles are metadata components that contain an agent's Agent Script file. The Agent Script file is the agent's blueprint; it fully describes what the agent can do using the Agent Script language.
|
|
8
8
|
|
|
9
|
-
Use this command to generate a new authoring bundle based on an agent spec YAML file, which you create with the "agent generate agent-spec" command. The agent spec YAML file is a high-level description of the agent; it describes its essence rather than exactly what it can do.
|
|
9
|
+
Use this command to generate a new authoring bundle based on an agent spec YAML file, which you create with the "agent generate agent-spec" command. The agent spec YAML file is a high-level description of the agent; it describes its essence rather than exactly what it can do. The resulting Agent Script file is customized to reflect what's in the agent spec file. You can also create an authoring bundle without an agent spec file by specifying the "--no-spec" flag; in this case, the resulting Agent Script file is just the default boilerplate.
|
|
10
10
|
|
|
11
11
|
The metadata type for authoring bundles is aiAuthoringBundle, which consist of a standard "<bundle-api-name>.bundle-meta.xml" metadata file and the Agent Script file (with extension ".agent"). When you run this command, the new authoring bundle is generated in the force-app/main/default/aiAuthoringBundles/<bundle-api-name> directory. Use the --output-dir flag to generate them elsewhere.
|
|
12
12
|
|
|
@@ -16,12 +16,16 @@ This command requires an org because it uses it to access an LLM for generating
|
|
|
16
16
|
|
|
17
17
|
# flags.spec.summary
|
|
18
18
|
|
|
19
|
-
Path to the agent spec YAML file
|
|
19
|
+
Path to the agent spec YAML file. If you don't specify the flag, the command provides a list that you can choose from. Use the --no-spec flag to skip using an agent spec entirely.
|
|
20
20
|
|
|
21
21
|
# flags.spec.prompt
|
|
22
22
|
|
|
23
23
|
Path to the agent spec YAML file
|
|
24
24
|
|
|
25
|
+
# flags.no-spec.summary
|
|
26
|
+
|
|
27
|
+
Skip prompting for an agent spec and use the default Agent Script boilerplate in the generated authoring bundle.
|
|
28
|
+
|
|
25
29
|
# flags.output-dir.summary
|
|
26
30
|
|
|
27
31
|
Directory where the authoring bundle files are generated.
|
|
@@ -48,6 +52,10 @@ API name of the new authoring bundle
|
|
|
48
52
|
|
|
49
53
|
<%= config.bin %> <%= command.id %>
|
|
50
54
|
|
|
55
|
+
- Generate an authoring bundle without using an agent spec file; give the bundle the label "My Authoring Bundle" and use your default org:
|
|
56
|
+
|
|
57
|
+
<%= config.bin %> <%= command.id %> --no-spec --name "My Authoring Bundle"
|
|
58
|
+
|
|
51
59
|
- Generate an authoring bundle from the "specs/agentSpec.yaml" agent spec YAML file and give it the label "My Authoring Bundle"; use your default org:
|
|
52
60
|
|
|
53
61
|
<%= config.bin %> <%= command.id %> --spec specs/agentSpec.yaml --name "My Authoring Bundle"
|
|
@@ -56,6 +64,10 @@ API name of the new authoring bundle
|
|
|
56
64
|
|
|
57
65
|
<%= config.bin %> <%= command.id %> --spec specs/agentSpec.yaml --name "My Authoring Bundle" --output-dir other-package-dir/main/default --target-org my-dev-org
|
|
58
66
|
|
|
67
|
+
# error.specAndNoSpec
|
|
68
|
+
|
|
69
|
+
You can't specify both --spec and --no-spec.
|
|
70
|
+
|
|
59
71
|
# error.no-spec-file
|
|
60
72
|
|
|
61
73
|
No agent spec YAML file found at the specified path.
|
package/oclif.manifest.json
CHANGED
|
@@ -535,9 +535,10 @@
|
|
|
535
535
|
"agent:generate:authoring-bundle": {
|
|
536
536
|
"aliases": [],
|
|
537
537
|
"args": {},
|
|
538
|
-
"description": "Authoring bundles are metadata components that contain an agent's Agent Script file. The Agent Script file is the agent's blueprint; it fully describes what the agent can do using the Agent Script language.\n\nUse this command to generate a new authoring bundle based on an agent spec YAML file, which you create with the \"agent generate agent-spec\" command. The agent spec YAML file is a high-level description of the agent; it describes its essence rather than exactly what it can do.\n\nThe metadata type for authoring bundles is aiAuthoringBundle, which consist of a standard \"<bundle-api-name>.bundle-meta.xml\" metadata file and the Agent Script file (with extension \".agent\"). When you run this command, the new authoring bundle is generated in the force-app/main/default/aiAuthoringBundles/<bundle-api-name> directory. Use the --output-dir flag to generate them elsewhere.\n\nAfter you generate the initial authoring bundle, code the Agent Script file so your agent behaves exactly as you want. The Agent Script file generated by this command is just a first draft of your agent! Interactively test the agent by conversing with it using the \"agent preview\" command. Then publish the agent to your org with the \"agent publish authoring-bundle\" command.\n\nThis command requires an org because it uses it to access an LLM for generating the Agent Script file.",
|
|
538
|
+
"description": "Authoring bundles are metadata components that contain an agent's Agent Script file. The Agent Script file is the agent's blueprint; it fully describes what the agent can do using the Agent Script language.\n\nUse this command to generate a new authoring bundle based on an agent spec YAML file, which you create with the \"agent generate agent-spec\" command. The agent spec YAML file is a high-level description of the agent; it describes its essence rather than exactly what it can do. The resulting Agent Script file is customized to reflect what's in the agent spec file. You can also create an authoring bundle without an agent spec file by specifying the \"--no-spec\" flag; in this case, the resulting Agent Script file is just the default boilerplate.\n\nThe metadata type for authoring bundles is aiAuthoringBundle, which consist of a standard \"<bundle-api-name>.bundle-meta.xml\" metadata file and the Agent Script file (with extension \".agent\"). When you run this command, the new authoring bundle is generated in the force-app/main/default/aiAuthoringBundles/<bundle-api-name> directory. Use the --output-dir flag to generate them elsewhere.\n\nAfter you generate the initial authoring bundle, code the Agent Script file so your agent behaves exactly as you want. The Agent Script file generated by this command is just a first draft of your agent! Interactively test the agent by conversing with it using the \"agent preview\" command. Then publish the agent to your org with the \"agent publish authoring-bundle\" command.\n\nThis command requires an org because it uses it to access an LLM for generating the Agent Script file.",
|
|
539
539
|
"examples": [
|
|
540
540
|
"Generate an authoring bundle by being prompted for all required values, such as the agent spec YAML file, the bundle name, and the API name; use your default org:\n<%= config.bin %> <%= command.id %>",
|
|
541
|
+
"Generate an authoring bundle without using an agent spec file; give the bundle the label \"My Authoring Bundle\" and use your default org:\n<%= config.bin %> <%= command.id %> --no-spec --name \"My Authoring Bundle\"",
|
|
541
542
|
"Generate an authoring bundle from the \"specs/agentSpec.yaml\" agent spec YAML file and give it the label \"My Authoring Bundle\"; use your default org:\n<%= config.bin %> <%= command.id %> --spec specs/agentSpec.yaml --name \"My Authoring Bundle\"",
|
|
542
543
|
"Similar to previous example, but generate the authoring bundle files in the \"other-package-dir/main/default\" package directory; use the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --spec specs/agentSpec.yaml --name \"My Authoring Bundle\" --output-dir other-package-dir/main/default --target-org my-dev-org"
|
|
543
544
|
],
|
|
@@ -584,11 +585,17 @@
|
|
|
584
585
|
"spec": {
|
|
585
586
|
"char": "f",
|
|
586
587
|
"name": "spec",
|
|
587
|
-
"summary": "Path to the agent spec YAML file
|
|
588
|
+
"summary": "Path to the agent spec YAML file. If you don't specify the flag, the command provides a list that you can choose from. Use the --no-spec flag to skip using an agent spec entirely.",
|
|
588
589
|
"hasDynamicHelp": false,
|
|
589
590
|
"multiple": false,
|
|
590
591
|
"type": "option"
|
|
591
592
|
},
|
|
593
|
+
"no-spec": {
|
|
594
|
+
"name": "no-spec",
|
|
595
|
+
"summary": "Skip prompting for an agent spec and use the default Agent Script boilerplate in the generated authoring bundle.",
|
|
596
|
+
"allowNo": false,
|
|
597
|
+
"type": "boolean"
|
|
598
|
+
},
|
|
592
599
|
"output-dir": {
|
|
593
600
|
"char": "d",
|
|
594
601
|
"name": "output-dir",
|
|
@@ -627,7 +634,7 @@
|
|
|
627
634
|
"promptMessage": "API name of the new authoring bundle"
|
|
628
635
|
},
|
|
629
636
|
"spec": {
|
|
630
|
-
"message": "Path to the agent spec YAML file
|
|
637
|
+
"message": "Path to the agent spec YAML file. If you don't specify the flag, the command provides a list that you can choose from. Use the --no-spec flag to skip using an agent spec entirely.",
|
|
631
638
|
"promptMessage": "Path to the agent spec YAML file",
|
|
632
639
|
"required": true
|
|
633
640
|
}
|
|
@@ -1483,5 +1490,5 @@
|
|
|
1483
1490
|
]
|
|
1484
1491
|
}
|
|
1485
1492
|
},
|
|
1486
|
-
"version": "1.27.
|
|
1493
|
+
"version": "1.27.5"
|
|
1487
1494
|
}
|
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.27.
|
|
4
|
+
"version": "1.27.5",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"exports": "./lib/index.js",
|
|
238
238
|
"type": "module",
|
|
239
239
|
"sfdx": {
|
|
240
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.
|
|
241
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.
|
|
240
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.5.crt",
|
|
241
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.5.sig"
|
|
242
242
|
}
|
|
243
243
|
}
|